import { ScrollArea, type ScrollOrientation } from '../ui/scroll-area'; import { defineWebComponent } from './define'; interface Props extends Record { /** Which axis scrolls. `vertical` (default) · `horizontal` · `both`. The cross * axis is clamped so content can't overflow it. */ orientation?: ScrollOrientation; } /** * `` — a scroll container with a themed, thin, cross-browser * scrollbar and a keyboard-reachable region. Project the scrollable content as * light-DOM children and give the element a bounded size in your layout; the * content then scrolls inside. Use `orientation` to pick the axis. Restyle the * container via `::part(viewport)`; the scrollbar follows the * `--color-scrollbar-thumb` token. * * ```html * …long content… * …wide row… * ``` */ defineWebComponent('kai-scroll-area', { orientation: 'vertical', }, (props) => ( <> {/* The element is a block box; the consumer sets its size, the viewport fills it. */} ));