DocsExamples

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

  1. Click the first Pin on Ervin Reinger. His row moves to the top.
  2. Click the second Pin on Brittany McCullough. Her row moves to the bottom.
  3. Scroll inside the table. Both rows stay in view.
Storybook