Skip to content
Command & Search

Filters

client86.25 kB
@stellaria/nebula-webFiltersProps

Preview

Props

10
PropTypeDefault

accessors

FilterAccessors

—

className

string

—

defaultState

Readonly<Record<string, FilterValue>>{}

filters

required
readonly FilterDescriptor[]

—

labels

Partial<FilterLabels>

—

loading

booleanfalse

onChange

((state: FilterState) => void)

—

placement

PopoverPlacement"bottom start"

size

Size"sm"

state

Readonly<Record<string, FilterValue>>

—

Slot props

4

Each one spreads over an inner element, so you can restyle a region without forking the component.

PropTypeDefault

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