Filters (components)
BooleanFilter, DateFilter, FilterCheckboxItem, FilterClearButton and 14 more: generated from the source of active-grid.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Boolean Filter#
Generic over TData; the props below name it.
Props
- Type
Column<TData, unknown>
- Type
{ all?: string; true?: string; fa…
- Type
string
- Type
"icon""text"
Takes only the props listed.
Date Filter#
Generic over TData; the props below name it.
Props
- Type
Column<TData, unknown>
- Type
string
Takes only the props listed.
Filter Checkbox Item#
Filter Clear Button#
Props
Events
Called by the component when something happens.
Other props, such as the standard attributes of the underlying element, className and ref, are passed through.
Filter Date Input#
Filter Number Input#
Filter Operator Select#
Filter Popover#
Props
Events
Called by the component when something happens.
- Type
(open: boolean) => void
Takes only the props listed.
Filter Popover Body#
Filter Popover Content#
Props marked Base UI are behaviour of the Base UI part this component is built on.
Props
- Type
Align- Default
'center'
How to align the popup relative to the specified side.
- Type
number | OffsetFunction - Default
0
Additional offset along the alignment axis in pixels. Also accepts a function that returns the offset to read the dimensions of the anchor and positioner elements, along with its side and alignment.
The function takes a data object parameter with the following properties:
data.: the dimensions of the anchor element with propertiesanchor widthandheight.data.: the dimensions of the positioner element with propertiespositioner widthandheight.data.: which side of the anchor element the positioner is aligned against.side data.: how the positioner is aligned relative to the specified side.align
- Type
string
- Type
booleanRefObject<HTMLElement | null> (closeType) => …
Determines the element to focus when the popover is closed.
false: Do not move focus.true: Move focus based on the default behavior (trigger or previously focused element).Ref: Move focus to the ref element.Object function: Called with the interaction type (mouse,touch,pen, orkeyboard). Return an element to focus,trueto use the default behavior,nullto fall back to the default behavior, orfalse/undefinedto do nothing.
- Type
booleanRefObject<HTMLElement | null> (openType) => …
Determines the element to focus when the popover is opened. By default, focus moves to the first tabbable element inside the popup, except when the popover is opened by touch — then the popup itself is focused to avoid opening the virtual keyboard.
false: Do not move focus.true: Move focus based on the default behavior (first tabbable element or popup).Ref: Move focus to the ref element.Object function: Called with the interaction type (mouse,touch,pen, orkeyboard). Return an element to focus,trueto use the default behavior,nullto fall back to the default behavior, orfalse/undefinedto do nothing.
- Type
Side- Default
'bottom'
Which side of the anchor element to align the popup against. May automatically change to avoid collisions.
- Type
number | OffsetFunction - Default
0
Distance between the anchor and the popup in pixels. Also accepts a function that returns the distance to read the dimensions of the anchor and positioner elements, along with its side and alignment.
The function takes a data object parameter with the following properties:
data.: the dimensions of the anchor element with propertiesanchor widthandheight.data.: the dimensions of the positioner element with propertiespositioner widthandheight.data.: which side of the anchor element the positioner is aligned against.side data.: how the positioner is aligned relative to the specified side.align
- Type
ComponentRender Fn<…> ReactElement<…>
Allows you to replace the component's HTML element with a different tag, or compose it with another component.
Accepts a React or a function that returns the element to render.
Other props, such as the standard attributes of the underlying element, className and ref, are passed through.
Filter Popover Header#
Filter Popover Trigger#
All props come from the Base UI part this component is built on.
Props
- Type
number- Default
0
How long to wait before closing the popover that was opened on hover. Specified in milliseconds.
Requires the open prop.
- Type
number- Default
300
How long to wait before the popover may be opened on hover. Specified in milliseconds.
Requires the open prop.
- Type
PopoverHandle<unknown>
A handle to associate the trigger with a popover.
- Type
string
ID of the trigger. In addition to being forwarded to the rendered element, it is also used to specify the active trigger for the popover in controlled mode (with the PopoverRoot trigger prop).
- Type
boolean- Default
false
Whether the popover should also open when the trigger is hovered.
- Type
unknown
A payload to pass to the popover when it is opened.
- Type
ComponentRender Fn<…> ReactElement<…>
Allows you to replace the component's HTML element with a different tag, or compose it with another component.
Accepts a React or a function that returns the element to render.
Other props, such as the standard attributes of the underlying element, className and ref, are passed through.
Filter Search Input#
Props
Events
Called by the component when something happens.
- Type
(value: string) => void
Takes only the props listed.
Filter Text Input#
Filter Wrapper#
Generic over TData; the props below name it.
Props
Takes only the props listed.
Number Filter#
Generic over TData; the props below name it.
Props
- Type
Column<TData, unknown>
- Type
string
Takes only the props listed.
Select Filter#
Generic over TData; the props below name it.
Props
- Type
Column<TData, unknown>
- Type
number- Default
250
- Type
SelectFilter Option[]
- Type
string- Default
''
- Type
boolean
- Type
SelectFilter Option[]
- Type
boolean
Takes only the props listed.
Text Filter#
Generic over TData; the props below name it.
Props
- Type
Column<TData, unknown>
- Type
string
Takes only the props listed.