Live demo
Demo source
Use an icon to help people recognize an action, an object or a state at a glance, such as search, a calendar or a warning. Pair it with text in most places; an icon alone is easy to misread.
Name, size and colour
namepicks a symbol from the Nova icon set, such assearch,calendaroralert-triangle. Browse the names in the API.sizesetsxs,sm,md(the default),lgorxl.- The icon takes the current text colour, so a status colour on the text
around it colours the icon too. The
colorprop is deprecated.
Icon explorer
Browse the Nova icon explorer
to find a symbol, then use its name in name. The API lists the names
available in this version of the component; check it when a design uses a
symbol that is absent from your installed version.
Accessibility
An icon is announced as an image named after its symbol, such as "calendar-icon". That name rarely helps, so:
- When text next to the icon says the same thing, hide the icon with
aria-hidden="true". - When the icon is the only content of a button, use an icon button with a label.
- Never rely on an icon or its colour alone to carry meaning.
Guidelines
- Use the same icon for the same meaning throughout a product.
- Match the icon size to the text beside it.