Examples
Sticky Header Example
An example of Shadcn Table which shows how to make the header and footer sticky while scrolling.
Shadcn Table allows you to easily make the header and footer sticky while scrolling. See the Sticky Header Feature Guide for more information.
Try it
- Scroll inside the table. The header stays at the top and the footer at the bottom.
- Scroll to the end. The footer row repeats the column names.
Related guides
Lazy Sub-Rows Example
A Shadcn Table example showing how to use expandable rows to fetch additional sub-rows data only after the user expands the row.
Column Pinning Example
An example of Shadcn Table which shows how to pin columns to the start or the end so they stay in place while the rest scroll sideways.