Skip to content

Filters

Free

Lets people narrow a list with filters that read like a sentence: a field, a rule, and a value. The list changes as they pick, and phones get a sheet.

  • Base UI
  • React Aria
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 11, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Give the root its fields. Put the add button in a row, and the chips under it.

invoice-filters.tsx

Filters

PropTypeDefaultDescription
fieldsRequired—The fields people can filter by, in menu order.
valueFilterValue—The filters, in chip order (controlled). One entry per field.
defaultValueFilterValueNO_FILTERSThe first filters (uncontrolled).
onValueChange—Called on each change: live, as people pick and type. A draft entry filters nothing.
labels—Words over FILTERS_LABELS. Keep the object stable (a module constant or a memo).
localestring—The locale of numbers and days. Default: the page locale.
disabledbooleanfalse
nowDisplayNow—The clock of the date presets and texts. Default: the time the bar mounts.
previewCount—The row count of a value, for "Show 42 results" in the phone sheet.
childrenReactNode—FiltersAdd, FiltersBar, and the rest of the layout.

FiltersBar

PropTypeDefaultDescription
classNamestring—
childrenReactNode—The parts after the chips. Default: the + add button and Clear.

FiltersChip

PropTypeDefaultDescription
fieldRequiredstring—The field id of the entry.
classNamestring—

FiltersAdd

<button>
PropTypeDefaultDescription
variant"button""icon""button"button (default): the outline "Filter" button with the F key, for a toolbar row. icon: the dashed + at the end of the chips (the default in FiltersBar).
hotkeyboolean—Open the field list with the F key (not in a text field). Default true for button.
classNamestring—
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

FiltersClear

<button>
PropTypeDefaultDescription
classNamestring—
unstyledboolean—Drop the Button look and keep only className. Use it when render mounts a component with its own look (a Toggle, a ToggleGroupItem, a SelectTrigger), or the two looks mix.
chevronboolean—Add a chevron after the content, for a button that opens a menu, a select, or a popover with its current value in front ("Heading 1", a list icon, the color "A"). See the JSDoc of ToolbarButton. Default false.
rounded"default""full"—
size"default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs"—
variant"dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary"—
childrenReactNode—
From Base UIToolbar.ButtonBase UI docs
disabledbooleanfalseWhen true the item is disabled.
focusableWhenDisabledbooleantrueWhen true the item remains focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

FilterOptionsItems

PropTypeDefaultDescription
fieldRequired—
entryRequiredFilterEntry—The entry, or undefined before the field has one (the add menu).
onEntryChangeRequired—

FilterOptionsChecklist

<div>
PropTypeDefaultDescription
fieldRequired—
entryRequiredFilterEntry—The entry, or undefined before the field has one (the add menu).
onEntryChangeRequired—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

FilterOptionsTree

<div>
PropTypeDefaultDescription
fieldRequired—
entryRequiredFilterEntry—The entry, or undefined before the field has one (the add menu).
onEntryChangeRequired—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

FilterValueEditor

PropTypeDefaultDescription
fieldRequired—
entryRequiredFilterEntry—The entry, or undefined before the field has one (the add menu).
onEntryChangeRequired—
months122The calendar months side by side: 2 in a popup, 1 in the phone sheet.
onDone—Enter in a text or number field: the popup closes.
  • Use it when a list has three or more fields to filter by.
  • Use value and onValueChange to keep the filters in the URL or send them to a server.
  • For a filter bar on a Data Table, use Data Table.
  • For one choice from a short list, use a Select.
FOpens the field list, when FiltersAdd has the hotkey.
EnterorSpaceOpens the editor of a chip part, or picks a value.
Arrow keysMove between the rows of an editor.
EscapeCloses the editor.
Editor popup
popup · the field and value editors open on the Popup motion
  1. AddedFilters, with Button, Button Group, Calendar, Cascader, Checkbox, Checkbox Group, Date Field, Date Input, Date Presets, Drawer, Histogram Slider, Input, Kbd, Label, Menu, Number Field, Popover, Range Calendar, Scroller, Search Field, Segmented Control, Slider, Spinner, Toolbar, Tooltip.
Open the release