Scrollable Area — Sticky Passthrough
- from @astryx
- by Astryx
A section whose content fits clips instead of scrolling, so its sticky label passes outward and pins to the panel edge. The next section sets stickyContainment="always" and keeps its label in its own box.
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-passthroughRegistry dependencies0
The CLI adds no other registry items with this one.
