Command & Search
Filters
client86.25 kB
@stellaria/nebula-webFiltersPropsPreview
Props
10| Prop | Type | Default |
|---|---|---|
accessors | FilterAccessors | — |
className | string | — |
defaultState | Readonly<Record<string, FilterValue>> | {} |
filters required | readonly FilterDescriptor[] | — |
labels | Partial<FilterLabels> | — |
loading | boolean | false |
onChange | ((state: FilterState) => void) | — |
placement | PopoverPlacement | "bottom start" |
size | Size | "sm" |
state | Readonly<Record<string, FilterValue>> | — |
Slot props
4Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
emptyProps The no-filters notice. Only rendered when the list arrives empty. | TextSlotProps | — |
footProps The footer with the clear button. It only appears when there are active filters. | BoxSlotProps | — |
listProps The filter list. Not rendered while `loading`. | BoxSlotProps | — |
panelProps The popover panel. | BoxSlotProps | — |
Also accepts
On top of its own props, this component forwards these groups.
Style props · 127