The SideBar component provides the ability to display navigation sections. It replaces the SideBar
component from nui-shell
.
The SideBar requires at least one Section
but can have as many as necessary. Section
s are comprised of 1 or more Link
s.
The skipLink
prop is used to define a method for keyboard users to skip the navigation section and instead jump directly to the content. It requires an href
and a localized label
. The skip link is invisible unless it receives direct focus; it will be the first tab stop within the section. Only one needs to be provided per SideBar component.
Property | Type | Default | Description |
---|---|---|---|
skipLink | Object | Required | Contains an href and localized label to create a link to skip the navigation section. |
Property | Type | Default | Description |
---|---|---|---|
title | String | Required | Localized title of the navigation section to be displayed. |
Property | Type | Default | Description |
---|---|---|---|
name | String | Required | Localized text displayed as link. |
href | String | Required | Destination of link. |