Command & Search
Search
client93.75 kB
@stellaria/nebula-webSearchPropsPreview
Props
21| Prop | Type | Default |
|---|---|---|
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 | boolean | false |
labels | Partial<SearchLabels> | — |
loading | boolean | false |
onChange | ((value: string) => void) | — |
onFilterChange | ((state: FilterState) => void) | — |
onRefresh | (() => void) | — |
onSearch | ((value: string) => void) | — |
size | Size | "md" |
top | ReactNode | — |
value | string | — |
Slot props
3Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
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