Scroll Area
Foundations · ScrollArea, Avatar, Separator
A scrolling box with thin scrollbars in the kit's colours, vertical, horizontal or both.
- The area is a focusable region with a name (
label), so it scrolls with the arrow keys. - Scrolling stays inside the box (no scroll chaining into the page).
Team · 12
MEMara Ellis
JPJonah Petit
SLSun Lee
RCRui Costa
ABAva Brandt
INIda Nolan
TMTheo Marsh
CHClara Haddad
BOBen Okafor
LVLena Vogt
OSOmar Said
PLPia Lund
ReleasesScroll sideways, or focus the area and use the arrow keys.
v2.4Apr release
v2.3Mar release
v2.2Feb release
v2.1Jan release
v2.0Dec release
v1.9Nov release
v1.8Oct release
Props
ScrollArea
| Prop | Type | Notes |
|---|---|---|
height? | number | string | Fixed height of the scrolling box. |
maxHeight? | number | string | |
orientation? | "vertical" | "horizontal" | "both" | |
label | string | Accessible name; the box is a focusable region so it scrolls from the keyboard. |
children? | ReactNode | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Avatar
| Prop | Type | Notes |
|---|---|---|
name | string | Required |
src? | string | |
size? | number | |
tint? | Tint | "surface-sunken" | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Separator
| Prop | Type | Notes |
|---|---|---|
orientation? | "horizontal" | "vertical" | |
label? | string | Text in the middle of the line ("or"). |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |