Stack
Arrange controls and actions with consistent spacing, alignment, and wrapping.
alpina-ui/ui/stackUsage notes
Use inset for padding in multiples of the spacing unit. The ink and paper surfaces establish matching themes for the controls they contain. Use scripting="enabled" or "none" for alternate interactive and static presentations.
When to use
Space a sequence of controls or paragraphs consistently as their translations wrap.
When to avoid
Use Grid when rows in neighbouring cards must align to the same tracks.
Accessibility
Keep the source order meaningful. Check that wrapping a button group preserves the expected reading and tab order.
| Key | Action |
|---|---|
| Tab / Shift+Tab | Move through any links or controls supplied inside the component, in document order. |
Content
Group copy that belongs to the same decision. Use one short heading per group and give qualifications their own line.
- Use
- Contact details / Name / Email address
- Avoid
- Name / unrelated action / Email address
Copy in four languages
- German
- Kontaktperson13 characters
- French
- Personne de contact19 characters
- Italian
- Persona di contatto19 characters
- Romansh
- Persuna da contact18 characters
npx --no-install alpina add stack