DocsExamples

Examples

Subheader Filters Example

An example of Shadcn Table which shows the column filters in a row under the headers, with the filter variants and the filter mode picker.

Set columnFilterDisplayMode: 'subheader' to show the column filters in a row under the headers instead of as chips in the toolbar; each text filter carries its mode picker, as filter modes are on by default. Learn more in the Column Filtering Feature Guide.

Try it

  1. Type Doe in Filter by Name. John Doe and Jane Doe remain.
  2. Click the mode button beside it and choose Starts With. No rows remain: no name starts with Doe.
  3. Click Show/Hide filters. The filter row hides.
Storybook