Elements Scroll Area
Back to Elements

Scroll Area

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

ScrollArea.Root

Scrollable container with custom scrollbar with dark mode support.

Prop Type Default Description
ref bind: HTMLElement | null null
viewportRef bind: null
class as className string
orientation string "vertical"
scrollbarXClasses string ""
scrollbarYClasses string ""
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

ScrollArea.Scrollbar

Scrollable container with custom scrollbar.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
orientation string "vertical"
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.