Skip to content
nexubDesign System
v2.4.0

Components · Disclosure

Scroll Area

StableSince v0.0.1

Scrollable container with custom styled scrollbars.

import { ScrollArea } from '@nexub/react';

Examples

Default

Horizontal

Props

Props
PropTypeDefaultDescription
type'auto' | 'always' | 'scroll' | 'hover''hover'Controls when the scrollbar is visible. "hover" shows it on mouse-over, "scroll" while scrolling, "always" always, "auto" when content overflows.
scrollHideDelaynumber600Milliseconds before the scrollbar hides after the user stops interacting (only applies to types "scroll" and "hover").
orientation'vertical' | 'horizontal' | 'both''vertical'Which axis(es) to make scrollable.
classNamestring—Additional CSS class names applied to the viewport wrapper.
styleReact.CSSProperties—Inline styles applied to the viewport wrapper.

On iOS & Android