Scrollable Area — Sticky Section Labels
- from @astryx
- by Astryx
A scrollable viewport is the containing block for position: sticky, so section labels pin to the top edge of the list instead of the page.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @astryx/example-scrollable-area-sticky-section-labelsRegistry dependencies0
The CLI adds no other registry items with this one.
