ScrollArea
Thin scrollbar + fade
A box that scrolls on its own inside a page — a long list in a sidebar, a code block, a wide table. Prefer letting the page scroll; nested scrolling is easy to get stuck in on phones.
Basic
第1話 — vertical, thin scrollbar, faded edges
第2話 — vertical, thin scrollbar, faded edges
第3話 — vertical, thin scrollbar, faded edges
第4話 — vertical, thin scrollbar, faded edges
第5話 — vertical, thin scrollbar, faded edges
第6話 — vertical, thin scrollbar, faded edges
第7話 — vertical, thin scrollbar, faded edges
第8話 — vertical, thin scrollbar, faded edges
第9話 — vertical, thin scrollbar, faded edges
第10話 — vertical, thin scrollbar, faded edges
第11話 — vertical, thin scrollbar, faded edges
第12話 — vertical, thin scrollbar, faded edges
chip 1chip 2chip 3chip 4chip 5chip 6chip 7chip 8chip 9chip 10chip 11chip 12
- It is focusable so keyboard users can scroll it with the arrows. Give it a
labeland it becomes a named region, so that stop is announced as something. axispicks the scroll direction;fadeshades the edges while there's more to see.
Usage
ts
import { BlessScrollArea } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
axis | "x" | "y" | "both" | "y" | |
fade | boolean | true | fade edges to hint overflow |
height | string | — | |
width | string | — | |
label | string | — | names the area; it is focusable so the keyboard can scroll it, and a stop needs a name |
Slots
| Name | Scope | Description |
|---|---|---|
default | — |