Filter chip
Allow the user to enter information, filter content, and make selections.
Props
ariaLabel
string
Accessible content used to label the filter chip controls.
error
boolean
Shows an error state.
iconTheme
GoabFilterChipTheme
Theme style of the leading icon.
Defaults to
outline.
leadingIcon
GoabIconType
Icon displayed at the start of the chip.
secondaryText
string
Secondary text displayed in a smaller size before the main content.
testId
string
Sets a data-testid attribute for automated testing.
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 filter chip is clicked to remove it.
ReactNode
content
ReactNode
Content displayed in the chip. Accepts a string or ReactNode for custom content.
Types
Tip
FilterChip is for removable filters that users can dismiss. For static labels or status indicators, use Badge instead.