The nav is a grouped set of links that take the user to another page, or tab through parts of a page. It comes in horizontal or vertical with several different variants.
Name | Type | Description | Default | Values |
---|---|---|---|---|
selected | Int |
Sets selected to current index | 0 |
|
currentHover | Int? |
Sets the current hover state to the current index | ||
variant | Variant |
Sets variant for nav | .normal |
normal subtle bold |
orientation | Orientation |
Changes the orientation of nav | .vertical |
horizontal verticle |
title | String? |
Sets title of nav | ||
borders | Bool |
Boolean value for whether nav items have a border or not | true |
true false |
highlight | Bool |
Boolean value for adding a highlight to nav | true |
true false |
views | [AnyView] |
An Array of AnyView |