FiltersBar API
import { FiltersBar } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
children | React.ReactNode | |
clearDisabled | boolean | |
clearLabel | string | |
dateRange | FiltersBarDateRange | null | The selected date range; shown when onDateRangeChange is passed. |
dateRangeLabel | string | |
dateRangePresets | readonly FiltersBarDateRangePreset[] | One-click ranges shown next to the picker, e.g. commonDateRangePresets. |
extra | React.ReactNode | |
onClear | () => void | |
onDateRangeChange | (range: FiltersBarDateRange | null) => void | |
onSearchChange | (value: string) => void | |
onStatusChange | (value: string) => void | |
search | string | |
searchClearable | boolean | |
searchDebounce | number | |
searchLabel | string | |
searchName | string | |
searchPlaceholder | string | |
status | string | |
statusLabel | string | |
statusOptions | readonly FiltersBarOption[] | |
statusPlaceholder | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).