Elements

Components

Scroll Area

ScrollArea, dressed in the paper-and-ink system: native bars give way to quiet ink lanes that surface on hover and scroll. The parts — Root, Viewport, Content, Scrollbar, Thumb, Corner.

#Basic usage

scroll-area/basic Vue React

#Props

#Content

A styled part — no props of its own; it takes the anatomy's shared styling.

#Corner

A styled part — no props of its own; it takes the anatomy's shared styling.

#Root

PropTypeDefaultDescription
idstringThe unique identifier of the machine.
idsPartial<{ root: string; viewport: string; content: string; scrollbar: string; thumb: string; }>The ids of the scroll area elements

#Scrollbar

PropTypeDefaultDescription
orientationOrientation—

#Thumb

A styled part — no props of its own; it takes the anatomy's shared styling.

#Viewport

A styled part — no props of its own; it takes the anatomy's shared styling.