Chip

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

Props

NameDefaultDescription
label: stringText to be placed on the chip.
prefixIcon: node | stringElement used as icon to be placed before the chip label.
suffixIcon: node | stringElement used as icon to be placed after the chip label.
onClickPrefix: functionThis function will be called when the prefix is clicked.
onClickSuffix: functionThis function will be called when the suffix is clicked.
disabled: booleanfalseIf true, the component will be disabled.
margin: string | objectSize 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: number0Value of the tabindex, it also applies to prefix and suffix icons when a function is given.

Examples

Basic usage

Icons