Scroll Area
Styled scrollable container using Radix Scroll Area.
Examples
Vertical
Preview
Horizontal
Preview
Vertical and horizontal
Preview
API
ScrollArea
| Property | Type | Default | Description |
|---|---|---|---|
| className | string | - | CSS class name for container styling. |
| children | React.ReactNode | - | Content rendered inside the viewport. |
| …props | React.ComponentProps<typeof ScrollAreaPrimitive.Root> | - | All Radix ScrollArea Root props are supported. |
ScrollBar
| Property | Type | Default | Description |
|---|---|---|---|
| orientation | ”vertical” | “horizontal" | "vertical” | Scrollbar orientation. |
| className | string | - | CSS class name for bar styling. |
| …props | React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar> | - | All Radix Scrollbar props are supported. |
Last updated on