Chips are elements that represent status, complementary information, or association between elements.
Name | Default | Description |
---|---|---|
label: string | Text to be placed on the chip. | |
prefixIcon: node | string | Element used as icon to be placed before the chip label. | |
suffixIcon: node | string | Element used as icon to be placed after the chip label. | |
onClickPrefix: function | This function will be called when the prefix is clicked. | |
onClickSuffix: function | This function will be called when the suffix is clicked. | |
disabled: boolean | false | If true, the component will be disabled. |
margin: string | object | Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge'). You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes. | |
tabIndex: number | 0 | Value of the tabindex, it also applies to prefix and suffix icons when a function is given. |