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
- Type
DoeinFilter by Name. John Doe and Jane Doe remain. - Click the mode button beside it and choose
Starts With. No rows remain: no name starts with Doe. - Click
Show/Hide filters. The filter row hides.