Skip to content

Scroll Area ​

Native scrolling with a thin scrollbar that follows the theme (border token, 6vp).

Usage ​

Approximate web preview — the HarmonyOS rendering is the reference.

Horizontal ​

Approximate web preview — the HarmonyOS rendering is the reference.

API ​

Extracted from the @Param / @Event / @BuilderParam declarations in the library sources.

SScrollArea ​

shadcn-vue ScrollArea: native scrolling with a thin, theme-coloured scrollbar (bg-border, 6vp).

The area fills the width it gets; its height follows the content up to maxScrollHeight (or the parent's constraint). Wrap it in a sized container for a fixed height.

PropTypeDefaultDescription
orientationScrollAreaOrientation
ScrollAreaOrientation = 'vertical' | 'horizontal' | 'both'
'vertical'
maxScrollHeightnumber | undefinedundefinedMaximum height in vp before the content scrolls (vertical / both).
borderedbooleanfalseDraw rounded-md border around the area (common in the shadcn examples).

Slots: children (trailing closure)

MIT Licensed