ScrollArea Theming

Theming documentation for ScrollArea component

Styled#

ScrollArea CSS Classes#

List of class names used in the styled mode.

classNamedescription
p-scrollareaClass name of the root element
p-scrollpanel-content-containerClass name of the viewport element
p-scrollpanel-contentClass name of the content element
p-scrollpanel-bar-xClass name of the thumb x element
p-scrollpanel-bar-yClass name of the thumb y element

Design Tokens#

List of design tokens.

tokenCSS Variabledescription
scrollpanel.transition.duration
--p-scrollpanel-transition-duration
Transition duration of root
scrollpanel.bar.size
--p-scrollpanel-bar-size
Size of bar
scrollpanel.bar.border.radius
--p-scrollpanel-bar-border-radius
Border radius of bar
scrollpanel.bar.focus.ring.width
--p-scrollpanel-bar-focus-ring-width
Focus ring width of bar
scrollpanel.bar.focus.ring.style
--p-scrollpanel-bar-focus-ring-style
Focus ring style of bar
scrollpanel.bar.focus.ring.color
--p-scrollpanel-bar-focus-ring-color
Focus ring color of bar
scrollpanel.bar.focus.ring.offset
--p-scrollpanel-bar-focus-ring-offset
Focus ring offset of bar
scrollpanel.bar.focus.ring.shadow
--p-scrollpanel-bar-focus-ring-shadow
Focus ring shadow of bar
scrollpanel.bar.background
--p-scrollpanel-bar-background
Background of bar

Unstyled#

Theming is implemented with the pass through properties in unstyled mode.