Vivid API

Navigation

A navigation component makes it easy for users to navigate through your application. Nav accepts Nav Item and Nav Disclosure elements as children.

Nav component goes along with slotted Nav Item and Nav Disclosure components.

Labeling

Text

The text attribute on the Nav Item component provides the Nav Item text.

Label

The label attribute on the Nav Disclosure component provides the nav disclosure label.

Icon

Use the icon slot to add an icon from the icon library to the Nav Item or Nav Disclosure components.

Icon Only

If the text is omitted, the Nav Item will be displayed as an icon-only Nav Item.

When an element has no visible text, provide an accessible name using the aria-labelattribute. This ensures screen reader users can understand the element’s purpose, even when it’s represented only by an icon or visual styling.

Appearance

The appearance attribute controls the Nav Item and the Nav Disclosure components style.
The default appearance is ghost. Below it is set to ghost-light.

Connotation

The connotation attribute controls the Nav Item and the Nav Disclosure components color of hover states the selected item.