Chip
Compact element for labels, tags, or selections.
Props
content
string
Use the Filter Chip component instead. The text content displayed in the chip.
deletable
boolean
Use the Filter Chip component instead. When true, shows a delete icon and makes chip clickable.
error
boolean
Use the Filter Chip component instead. Shows an error state on the chip.
iconTheme
GoabChipTheme
Use the Filter Chip component instead. The icon theme - outline or filled.
leadingIcon
string
Use the Filter Chip component instead. Icon displayed at the start of the chip.
testId
string
Use the Filter Chip component instead. Sets a data-testid attribute for automated testing.
variant
GoabChipVariant
Use the Filter Chip component instead. The chip variant style.
mt, mr, mb, ml
Spacing
Apply margin to the top, right, bottom, and/or left of the component.
Events
onClick
() => void
Callback fired when the chip is clicked or deleted.