Tile UI · SolidJS
CSR · SSR · SSGScrollArea
A native SolidJS scroll viewport with optional custom scrollbars.
import { For } from 'solid-js';
import { ScrollArea, ScrollBar } from '@tile-ui/solid';
export default function ScrollAreaDemo() {
return (
<ScrollArea style={{ height: '12rem', width: '100%' }}>Use ScrollArea with one or more ScrollBar primitives when custom controls should augment native scrolling.
Registry install
pnpm dlx shadcn@latest add @tile-ui/scroll-area
Package usage
import { ScrollArea, ScrollBar } from '@tile-ui/solid';
<ScrollArea>
<div style={{ height: "20rem" }}>Long content.</div>
<ScrollBar />
</ScrollArea>
Highlights
- Native scroll viewport
- Vertical and horizontal
ScrollBarprimitives - Keyboard and pointer scrollbar control
Registry dependencies
| Item | Purpose |
|---|---|
scroll-area |
Component source and module styles |
core |
Framework-agnostic logic helpers |
utils |
Shared utility helpers |
styles |
Shared SCSS tokens and globals |
API reference
ScrollArea
No custom props.
ScrollBar
| Prop | Type | Default |
|---|---|---|
orientation |
'vertical' | 'horizontal' |
— |