Icon
Identify an action, destination or state with an original Alpina pictogram.
alpina-ui/ui/icon36 icons
import { Icon } from 'alpina-ui'
<Icon name="git-branch" size={24} />Usage notes
Use a decorative icon beside visible action text. Give an icon-only button or link its own accessible name. Set the icon’s label when the graphic itself conveys meaning.
When to use
Identify a familiar action or destination when its compact shape helps people scan a toolbar.
When to avoid
An unfamiliar symbol for a payment or irreversible action needs a visible text label.
Accessibility
Hide a decorative icon from assistive technology. When it is the only visible content of a control, name the control by its action.
| Key | Action |
|---|---|
| — | Read in document order. The component has no keyboard command of its own. |
Content
Write the action or destination in a few words. Avoid describing the geometry of a symbol when naming a control.
- Use
- Search the directory
- Avoid
- Magnifying glass
Copy in four languages
- German
- Verzeichnis durchsuchen23 characters
- French
- Rechercher dans le répertoire29 characters
- Italian
- Cerca nella rubrica19 characters
- Romansh
- Tschertgar en il register25 characters
npx --no-install alpina add icon