React playground

Nova v3.37.0

Preview

React

Icon

nv-icon

A compact symbol for an action, an object or a state.

Live demo

Size

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

  • name picks a symbol from the Nova icon set, such as search, calendar or alert-triangle. Browse the names in the API.
  • size sets xs, sm, md (the default), lg or xl.
  • The icon takes the current text colour, so a status colour on the text around it colours the icon too. The color prop is deprecated.
search
calendar
alert-triangle
bell
download
edit
filter
settings
xs
sm
md · default
lg
xl

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.
Due 30 October
DoMatch the icon to the size of the text beside it.
Due 30 October
Don'tAvoid icons much smaller or larger than their text.

Sources