Examples
Faceted Values Example
An example of Shadcn Table which shows how to use faceted values to automatically populate filter suggestions.
Shadcn Table can scan your data and automatically generate filter autocomplete suggestions, filter select options, or min and max values for your column filters. This is made possible by the faceted values feature from TanStack Table. Learn more in the full Column Filtering Feature Guide.
Try it
- Click
Filterand chooseCity.Filter by Cityappears. - Open
Filter by City. Each city is listed with its count. - Pick
Richmond. One row remains. - Add a
Statefilter the same way. Its list offers onlyVirginia.