Skip to content
nexubDesign System
v12.7.0

Components · Disclosure

Scroll Area

StableAdded v0.0.1

Scrollable container with custom styled scrollbars.

import { ScrollArea } from '@nexub/react';
View as Markdown

Playground

Props

orientation
type
List item 1
List item 2
List item 3
List item 4
List item 5
List item 6
List item 7
List item 8
List item 9
List item 10
List item 11
List item 12
List item 13
List item 14
List item 15
List item 16
List item 17
List item 18
List item 19
List item 20
TSX
<ScrollArea className={…}>…</ScrollArea>

Examples

Default

List item 1
List item 2
List item 3
List item 4
List item 5
List item 6
List item 7
List item 8
List item 9
List item 10
List item 11
List item 12
List item 13
List item 14
List item 15
List item 16
List item 17
List item 18
List item 19
List item 20

Horizontal

Card 1
Card 2
Card 3
Card 4
Card 5
Card 6
Card 7
Card 8
Card 9
Card 10
Card 11
Card 12

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'horizontal' | 'vertical' | '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