Scroll Area
LayoutMITCustom scrollbar with cross-browser styling consistency — vertical, horizontal, both.
bun add @otfdashkit/ui
Preview
Scroll AreaLayout
Loading Storybook preview…
Code
@otfdashkit/uiimport { ScrollArea, Separator } from '@otfdashkit/ui'
const TAGS = Array.from({ length: 50 }).map((_, i) => `Tag ${i + 1}`)
export function Example() {
return (
<ScrollArea className="h-72 w-48 rounded-md border border-border bg-card">
<div className="p-4">
<h4 className="mb-3 text-sm font-semibold leading-none">Tags</h4>
{TAGS.map((tag) => (
<div key={tag}>
<div className="py-1.5 text-sm text-foreground">{tag}</div>
<Separator className="my-1" />
</div>
))}
</div>
</ScrollArea>
)
}
Free with the SDK. This component ships in @otfdashkit/ui under the MIT license.