DocsExamples

Examples

Basic Example

A basic example of Shadcn Table which includes sorting, filtering, search, and pagination features by default

Shadcn Table enables client-side sorting, filtering, search, pagination, column hiding, and more by default. These features can easily be disabled or customized further, but here is a showcase of their default behavior. Be sure to check out a more Advanced Example to see how more features can be customized.

Try it

  1. Click First Name and choose Sort ascending. The rows reorder.
  2. Try column filtering: click Filter, choose State and type Nebraska. Two rows remain.
  3. Remove the filter. All five rows return.
  4. Open search and type Ohio. One row remains.
Storybook