Scroll Area
Custom-styled scrollbar with native scrolling performance.
Generated from the package's public source.
API
Rootcomponent
Root(props: ScrollAreaRootProps): Element
Props
class?stringscrollHideDelay?number— Hide delay in ms for hover/scroll modes. Default 600.style?string | CSSPropertiestype?"auto" | "always" | "hover" | "scroll"— Scrollbar visibility: "auto" | "always" | "hover" | "scroll". Default "hover".
children: Element
ScrollAreaRootPropsinterface
Props
class?stringscrollHideDelay?number— Hide delay in ms for hover/scroll modes. Default 600.style?string | CSSPropertiestype?"auto" | "always" | "hover" | "scroll"— Scrollbar visibility: "auto" | "always" | "hover" | "scroll". Default "hover".
children: Element
ScrollAreaScrollbarPropsinterface
Props
class?stringorientation?"vertical" | "horizontal"— Scrollbar orientation.style?string | CSSProperties
children: Element
ScrollAreaThumbPropsinterface
Props
class?stringstyle?string | CSSProperties
ScrollAreaViewportPropsinterface
Props
class?stringstyle?string | CSSProperties
children: Element
Scrollbarcomponent
Scrollbar(props: ScrollAreaScrollbarProps): Element
Props
class?stringorientation?"vertical" | "horizontal"— Scrollbar orientation.style?string | CSSProperties
children: Element
Thumbcomponent
Thumb(props: ScrollAreaThumbProps): Element
Props
class?stringstyle?string | CSSProperties
Viewportcomponent
Viewport(props: ScrollAreaViewportProps): Element
Props
class?stringstyle?string | CSSProperties
children: Element