Docs
GitHub

ScrollArea

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

ScrollArea gives a scrollable region a consistent, styled scrollbar across browsers, without disabling native keyboard scrolling.

Usage

import { ScrollArea } from "@sina-design-system/core";

<ScrollArea style={{ height: 240 }}>
  {/* long content */}
</ScrollArea>

Examples

Vertical · a bounded list

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

Horizontal · content wider than the viewport

Chip 1   ·   Chip 2   ·   Chip 3   ·   Chip 4   ·   Chip 5   ·   Chip 6   ·   Chip 7   ·   Chip 8   ·   Chip 9   ·   Chip 10   ·   Chip 11   ·   Chip 12   ·   Chip 13   ·   Chip 14   ·   Chip 15   ·   Chip 16

Accessibility

Use it for a bounded list or panel that would otherwise overflow. Content stays keyboard-scrollable and the scrollbar doesn't shift layout.