Skip to content

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 label and it becomes a named region, so that stop is announced as something.
  • axis picks the scroll direction; fade shades the edges while there's more to see.

Usage ​

ts
import { BlessScrollArea } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
axis"x" | "y" | "both""y"
fadebooleantruefade edges to hint overflow
heightstring—
widthstring—
labelstring—names the area; it is focusable so the keyboard can scroll it, and a stop needs a name

Slots

NameScopeDescription
default—

Released under the MIT License. Character names and artwork belong to their owners.