ScrollArea
Give a scrollable region a name and keyboard access.
alpina-ui/ui/scroll-areaComposition
Contrast
Photography
Grid
Binding
Lithography
Margins
Registration
Printing
Typography
Usage notes
Name a scrollable region so keyboard users can identify it. Horizontal overflow stays inside the region while vertical scrolling can continue on the page.
When to use
Constrain a genuinely long panel while keeping the rest of a workspace within reach.
When to avoid
A short paragraph or a standard form generally reads better with normal page scrolling.
Accessibility
Name the region, allow keyboard scrolling and leave room for focus outlines at its edges. Check that scrolling can continue onto the page.
| Key | Action |
|---|---|
| Tab | Focus the scrollable region. |
| Arrow keys | Scroll along the available axis. |
| Page Up / Page Down | Scroll a vertical region by a page. |
Content
Give the panel a short subject label. Distinguish it from nearby scrollable regions using the content it contains.
- Use
- Revision history
- Avoid
- Scrollable box
Copy in four languages
- German
- Änderungsverlauf16 characters
- French
- Historique des modifications28 characters
- Italian
- Cronologia delle modifiche26 characters
- Romansh
- Istorgia da las modificaziuns29 characters
npx --no-install alpina add scroll-area