Navigation
NavList
A vertical list of destinations with an active item.
import { NavItem, NavList } from 'faifo-design'NavList renders a labelled list of NavItem links, one of which is current. It is the primitive
under local navigation: the sections of a settings area, the views of a module.
#When to use
- Use
AppNavigationfor the application's main navigation; useNavListfor navigation local to a region. - An item is a link. A choice that changes what one screen shows is
Tabsor a filter.
#Examples
Each example is a specimen of the package catalogue, rendered on the server exactly as shown in its code.
#Navigation and tabs
Faifo Blue marks the active item in both vertical and horizontal navigation.
The active panel owns vertical rhythm and scrolling, without horizontal padding.
Show codeHide code
#API
Generated from the package source. A property without a description has none in the source yet.
#NavItemComponent
| Property | Description | Type | Default |
|---|---|---|---|
labelrequired | – | string | – |
hrefrequired | – | string | – |
leading | – | JSXChild | – |
count | – | number | string | – |
active | – | boolean | – |
#NavListComponent
| Property | Description | Type | Default |
|---|---|---|---|
labelrequired | – | string | – |
itemsrequired | – | readonly NavItemProps[] | – |
#Types
#NavItemProps
The properties of NavItem, listed above.