๐ŸงจPre-releaseYou shouldn't use this library-1 min read

ChipProps API Reference

Prop reference

TitleTypeDefaultDescription
variant'primary'
| 'secondary'
| 'outlined'
| 'danger'
'primary'

Variant of the chip, affects background and text color

startAdornmentReactElement
โ€“

Icon or element to display at the start of the chip, will be cloned with size prop

endAdornmentReactElement
โ€“

Icon or element to display at the end of the chip, will be cloned with size prop

inlineboolean
false

Whether the chip should be displayed inline or as a block element

onClickOnClickFunction<HTMLDivElement>
โ€“-
size'small'
| 'medium'
| 'large'
โ€“-

* Props marked with an asterisk are required.

CSS target reference

ExportCSS Class TargetDescription
ChipTargetClassRoot.NPUI-Chip-root

Root of the chip

ChipTargetClassStartAdornment.NPUI-Chip-startAdornment

Start adornment of the chip

ChipTargetClassEndAdornment.NPUI-Chip-endAdornment

End adornment of the chip

ChipTargetClassLabel.NPUI-Chip-label

"Label" of the chip (text)

Exports are available from /src/components/chip/chip.tsx or from
Related APIs
Made by .