Nav
There are four navigation types included for you to use.
App Nav
The <AppNav/>
is the primary fly-out navigation element used in the app. The nav is designed to work on both desktop and mobile.
Preview
Code
Props
Prop | Description | Required | Value |
---|---|---|---|
items | list of links | required | array |
Breadcrumb Nav
Navigation trail for nested pages.
Preview
Code
Props
Prop | Description | Required | Value |
---|---|---|---|
items | list of item name and urls | required | array |
Auth Nav
Used for the auth pages. Renders a dashboard link if the user is signed in, or a sign-in button if not.
Preview
Code
Props
Prop | Description | Required | Value |
---|---|---|---|
transparent | apply a transparent background color | optional | boolean |
Hover Nav
Reveals a dropdown nav when the user hovers over a hotspot. Items are rendered as children.
Preview
Code
Props
Prop | Description | Required | Value |
---|---|---|---|
align | align left or right | required | left or right |
className | custom styles | optional | SCSS or Tailwind style |
label | the hotspot text | required | string |
icon | icon image | optional | boolean |
Sub Nav
Renders a sub navigation element underneath the header.
Preview
Code
Props
prop | description | value |
---|---|---|
items | list of item labels and urls | array |
Last updated