DocsExamples

Examples

Filter Variants Example

An example of Shadcn Table which shows all of the powerful built-in filter variants.

Shadcn Table not only has filtering built in, but it also has a lot of different filter variants that take care of a lot of the heavy lifting for you. Text filters, date filters, range filters, range slider filters, and more are all built in and ready to use. There is much more you can do to customize the behavior of filtering, so be sure to check out the full Column Filtering Feature Guide for more information.

Try it

  1. Click Filter, choose City and pick San Francisco. Two rows remain.
  2. Click Filter and choose Age. Min and Max boxes appear.
  3. Type 40 in Min and 45 in Max. Only Tanner Linsley remains.
  4. Click Clear filters. All seven rows return.
Storybook