Skip to content
nexubDesign System
v12.7.0

Patterns · Data

FilterBar

Since v0.0.1

Search + filter toolbar pattern for data-heavy list or table views.

import { FilterBar } from '@nexub/patterns';
View as Markdown

Examples

Default

Status: AllPlan: All

Without search

`search={false}`.

Status: Open

Props

Props
PropTypeDefaultDescription
searchbooleantrue11.3: false leaves the search field out, for a bar of filters and actions only.
searchPlaceholderstring—Placeholder text for the search input.
searchValuestring—Controlled search value.
onSearch((value: string) => void)—Callback when search value changes.
searchLabelstring—Accessible name of the search field (5.1). Defaults to the localised search message.
filtersReact.ReactNode—Filter controls rendered to the right of search.
activeCountnumber0Applied filters; above 0 shows "N filters" (5.5). countFilters(group) counts a FilterBuilder query.
onClearAll(() => void)—Shows a Clear all button next to the count (5.5).
actionsReact.ReactNode—Action buttons (e.g. "Export") rendered on the far right.

On iOS & Android