smrt
Open the smrt source on GitHub Switch to dark color scheme
← All UI components

Navigation

FilterChips

Horizontal filter navigation. Provides a row of selectable filter chips for filtering lists. Supports optional counts and "all" option.

Public export

typescript
import { FilterChips } from '@happyvertical/smrt-ui';
Import path
@happyvertical/smrt-ui
Props
7
Props described
7 of 7
Bindable state
0
Callback events
1
Verified release
0.62.10

Props

NameTypeRequiredDescription
density'comfortable' | 'touch'NoTarget density; omit to inherit the ThemeProvider setting.
optionsFilterOption[]YesAvailable filter options
selectedstringYesCurrently selected value
onchange(value: string) => voidNoCalled when selection changes
size'sm' | 'md'NoSize variant
showAllbooleanNoShow "All" option
allLabelstringNoAll option label

Bindable state

This component has no bindable public state.

Callback events

  • onchange(value: string) => void

Examples and explanation