Chip

Chips are elements that represent status, complementary information, or association between elements.

Props

NameTypeDescriptionDefault
labelstringText to be placed on the chip.-
prefixIconstring | (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_".-
suffixIconstring | (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() => voidIf defined, the prefix icon will be considered a button element. This function will be called when it is clicked.-
onClickSuffix() => voidIf defined, the suffix icon will be considered a button element. This function will be called when it is clicked.-
disabledbooleanIf true, the component will be disabled.false
margin'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | MarginSize 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.-
tabIndexnumberValue of the tabindex attribute applied to both the component and the prefix and suffix icons when a function is given.0

Examples

Basic usage

Icons