ScrollArea
@rockshin/tao-uiProvides a styled scroll container for overflow content.
When to use
Use ScrollArea when a fixed region needs overflow behavior without changing page scroll.
Recommended
- Constrain height explicitly.
- Avoid hiding important actions below a small scroll region.
Avoid
- Do not use the component outside its intended interaction model.
Examples
Basic usage
Horizontal and two-axis scrolling
Persistent scrollbars and custom size
Horizontal scrolling
Constrain the available width and use the appropriate scrollbar orientation for horizontal content.
Both axes
Scroll each axis when content exceeds both dimensions without widening the page.
Item 1 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 2 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 3 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 4 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 5 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 6 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 7 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 8 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 9 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 10 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 11 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 12 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 13 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 14 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 15 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 16 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 17 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 18 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 19 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 20 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 21 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 22 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 23 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 24 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 25 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 26 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 27 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 28 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 29 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 30 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 31 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 32 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 33 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 34 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 35 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 36 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 37 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 38 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 39 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 40 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 41 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 42 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 43 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 44 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 45 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 46 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 47 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 48 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 49 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Item 50 — This is a long line that overflows the container horizontally to demonstrate both scrollbars.
Persistent scrollbars
type="always" retains the scrollbar track when scrollability should be more visible.
Scroll edge shadows
Edge shadows indicate hidden content and disappear when that edge is reached.
Scrollbar size
Adjust scrollbar thickness while keeping the content area bounded.
Thin (4px)
Thick (10px)
Horizontal edge shadows
Use side shadows to indicate additional content while scrolling horizontally.