Chip
Chips are elements that represent status, complementary information, or association between elements.
Name | Type | Description | Default |
---|---|---|---|
label | string | Text to be placed on the chip. | - |
prefixIcon | string | (React.ReactNode & React.SVGProps <SVGSVGElement>) | Material Symbol name or SVG element as the icon that will be placed before the chip label. When using Material Symbols, replace spaces with underscores. By default they are outlined if you want it to be filled prefix the symbol name with "filled_" . | - |
suffixIcon | string | (React.ReactNode & React.SVGProps <SVGSVGElement>) | Material Symbol name or SVG element as the icon that will be placed after the chip label. When using Material Symbols, replace spaces with underscores. By default they are outlined if you want it to be filled prefix the symbol name with "filled_" . | - |
onClickPrefix | () => void | If defined, the prefix icon will be considered a button element. This function will be called when it is clicked. | - |
onClickSuffix | () => void | If defined, the suffix icon will be considered a button element. This function will be called when it is clicked. | - |
disabled | boolean | If true, the component will be disabled. | false |
margin | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | Margin | Size of the margin to be applied to the component. You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes. | - |
tabIndex | number | Value of the tabindex attribute applied to both the component and the prefix and suffix icons when a function is given. | 0 |