Examples
Static Row Pinning Example
An example of Shadcn Table which shows how to pin individual rows to the top or bottom of the table to keep them in view while scrolling.
Shadcn Table has the ability to pin rows and keep them in view while scrolling. In this example, when rows are pinned, they will be pinned statically to either the top or bottom of the table. Learn more about row pinning in the Row Pinning Feature Guide.
Try it
- Click the first
Pinon Ervin Reinger. His row moves to the top. - Click the second
Pinon Brittany McCullough. Her row moves to the bottom. - Scroll inside the table. Both rows stay in view.
Related guides
Sticky Row Pinning Example
An example of Shadcn Table which shows how to pin individual rows and have them be sticky and stay in view while scrolling.
Sticky Row Selection Example
An example of Shadcn Table which shows how to pin individual rows as they get selected and have them be sticky and stay in view while scrolling.