Aurora
Preview panel
@/components/kamod-ui/scroll-area
Import `ScrollArea`, `ScrollBar`, and optionally `ScrollAreaCorner` from `@/components/kamod-ui/scroll-area`.
pnpm add @kamod-ch/uiThe root gets your size and border classes; scrolling happens in an inner viewport with native scrollbars hidden. Add `ScrollBar` for a draggable thumb (vertical default or `orientation="horizontal"`). When both axes scroll, add `ScrollAreaCorner` after the bars to mask the junction. The viewport exposes `data-has-overflow-*`, `data-overflow-*-start|end`, `data-scrolling`, and CSS variables such as `--scroll-area-overflow-y-start` for edge fades (set `inherit` on pseudo-elements if needed, per Base UI).
import { ScrollArea } from "@/components/kamod-ui/scroll-area";<ScrollArea />A modern release feed with soft surface styling and a synced vertical thumb.
A shadcn-like horizontal strip with visual cards and explicit horizontal scrollbar.
Use ScrollArea for dense documentation snippets while keeping the layout compact.
Horizontal chips and tags stay tidy with an explicit bottom scrollbar.
Use two scrollbars plus `ScrollAreaCorner` when content overflows on both axes (shadcn / Base UI pattern).
Props, slots and variants for this component.
Scroll Area component props and accepted values.
| Prop | Type | Default |
|---|---|---|
| class (ScrollArea) | string | undefined |
| orientation (ScrollBar) | "vertical" | "horizontal" | "vertical" |
| class (ScrollAreaCorner) | string | undefined |
Keep focusable controls reachable in scrollable panels and ensure scroll regions have enough contrast and size for touch + pointer input.