Components

Scroll Area ​

Scroll areas constrain overflowing content into a fixed region without losing access to the rest of the interface.

Basic Usage ​

Use a standard scroll area when the content is modest in size but still needs a bounded viewport.

Long Lists ​

Use a taller scroll area for longer lists that need to stay bounded inside the surrounding interface.

Horizontal Scrolling ​

Horizontal orientation is useful for card rails, chips, or wide utility panels that should not wrap.

API ​

Slots ​

NameDescription
(default)Scrollable content

Props ​

NameDescription
contentReadonly reference to the internal scroll container.
Type HTMLDivElement
orientationType PkScrollAreaOrientation
Default vertical
sizeType PkScrollAreaSize
Default default
withoutScrollbarType boolean
Default false
withoutShadowType boolean
Default false

Events ​

NameDescription
onPkScrollEmitted when the viewport scrolls.

CSS Parts ​

NameDescriptionCSS selector
baseRoot container::part(base)
contentScrollable content wrapper::part(content)
end-shadowTrailing edge shadow::part(end-shadow)
scrollbarCustom scrollbar track::part(scrollbar)
start-shadowLeading edge shadow::part(start-shadow)
thumbCustom scrollbar thumb::part(thumb)
viewportScroll viewport (alias for content)::part(viewport)
Edit this page
Last updated: Sep 9, 2026, 7:18 PM