Skip to content

Button

Give primary and secondary actions distinct visual weight.

alpina-ui/ui/button

Interactive preview

Publications desk

Notebook copies

Requested quantity1

Usage notes

Give the action a verb. A busy button keeps its label visible and disables repeat activation while the action is pending.

When to use

Submit, save or change something in the current task. A payment instruction benefits from naming the object of the action.

When to avoid

Use a TextLink for a destination visitors should be able to open in a new tab.

Accessibility

Give icon-only buttons a name. Keep the action name visible while work is pending and expose the outcome near the form.

Keys
KeyAction
Enter / SpaceActivate an enabled button. When composed as a link, use Enter to navigate.

Content

Use a verb and its object. Aim for one short phrase in each language and let the button grow for the longest translation.

Use
Save address
Avoid
OK

Copy in four languages

German
Adresse speichern17 characters
French
Enregistrer l’adresse21 characters
Italian
Salva indirizzo15 characters
Romansh
Memorisar l’adressa19 characters
Add to your project
npx --no-install alpina add button