Skip to content
Command & Search

Search

server93.75 kB
@stellaria/nebula-webSearchProps

Preview

Props

21
PropTypeDefault

after

ReactNode

—

before

ReactNode

—

bottom

ReactNode

—

children

ReactNode

—

className

string

—

debounce

number

—

defaultFilterState

Readonly<Record<string, FilterValue>>

—

defaultValue

string

—

filterAccessors

FilterAccessors

—

filters

readonly FilterDescriptor[]

—

filterState

Readonly<Record<string, FilterValue>>

—

hideSearch

booleanfalse

labels

Partial<SearchLabels>

—

loading

booleanfalse

onChange

((value: string) => void)

—

onFilterChange

((state: FilterState) => void)

—

onRefresh

(() => void)

—

onSearch

((value: string) => void)

—

size

Size"md"

top

ReactNode

—

value

string

—

Slot props

3

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

PropTypeDefault

afterProps

The `after` slot. Only rendered when there is one.

BoxSlotProps

—

barProps

The bar that groups search, filters and actions.

BoxSlotProps

—

beforeProps

The `before` slot. Only rendered when there is one.

BoxSlotProps

—

Also accepts

On top of its own props, this component forwards these groups.

Style props · 125