Scroll Area
A fixed-size region that scrolls with custom overlay scrollbars, plus optional fades at the edges and control over the gutter.
Paste this into your agent.
Scroll Area makes a fixed-size region inside the page scroll, such as a list in a card, a horizontal tag row or a panel with a pinned footer. Let the page scroll instead when it can.
Install
bashnpx shadcn@4.18.0 add @siteplane/scroll-area
Import it from @/siteplane/components/scroll-area. The project needs Siteplane UI's one-time setup first: .
When to pick it
- vs : Use DialogPanel, SheetPanel or DrawerPanel inside overlays; they already wrap a scroll area.
- vs : Pick Truncate instead when the text should be cut rather than scrolled.
Rules
- Name the region with aria-label or aria-labelledby, since the viewport joins the tab order when it overflows.
- The viewport scrolls, so read or set the scroll offset through viewportRef.
- Give sideways-scrolling content its own width, such as w-max, and set scrollbarGutter so the scrollbar doesn't overlap it.
- Turn on fill for a flex-column child that must stretch to full height, such as one that pins a footer to the bottom.
- Don't nest a scroll region where the page itself could scroll.
Reference
Add to your agent
Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides
CLI
MCP server
Questions
Related skills
Accessibilityby addyosmani
Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".
AccessibilityExternalGitHub stars: 3K
Accessibility Diffby AccessLint
Regression check that diffs a live page's accessibility violations against a baseline from uncommitted changes or a branch.
AccessibilityExternalGitHub stars: 114
Accessibility Scanby AccessLint
Run the AccessLint rule engine against a live page and return a worklist of WCAG 2.2 violations grounded to DOM selectors and source locations.
AccessibilityExternalGitHub stars: 114
Accessible Animationby iart-ai
Tiered reduced-motion patterns for CSS, GSAP, Framer Motion, Lenis, and other web animation systems.
AccessibilityExternalGitHub stars: 64