ScrollArea
<ts-scroll-area> vv0.6.3
The ts-scroll-area component.
Open in Storybook for interactive demos.
Preview
Section titled “Preview”<ts-scroll-area orientation="vertical">Content</ts-scroll-area>Properties
Section titled “Properties”| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
maxHeight | max-height | string | undefined | — | Optional max height for the scroll area (e.g. ‘300px’). |
orientation | orientation | "both" | "horizontal" | "vertical" | 'vertical' | The scroll orientation. |
| Name | Description |
|---|---|
*(default)* | Default slot for scrollable content. |
CSS Parts
Section titled “CSS Parts”Use ::part() to style internal elements:
| Part | Description |
|---|---|
viewport | The scrollable viewport container. |
ts-scroll-area::part(viewport) { /* your custom styles */}<ts-scroll-area orientation="vertical">Content</ts-scroll-area>import { TsScrollArea } from '@tessera-ui/react';
<TsScrollArea orientation="vertical">Content</TsScrollArea>