Nav
<ts-nav> vv0.4.0
The ts-nav component.
Open in Storybook for interactive demos.
Preview
Section titled “Preview”<ts-nav variant="sidebar">Content</ts-nav>Properties
Section titled “Properties”| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
collapsed | collapsed | boolean | false | Whether the sidebar nav is collapsed (icons only). |
variant | variant | "horizontal" | "sidebar" | 'sidebar' | The navigation layout variant. |
| Name | Description |
|---|---|
*(default)* | Default slot for ts-nav-item children. |
CSS Parts
Section titled “CSS Parts”Use ::part() to style internal elements:
| Part | Description |
|---|---|
list | The list container. |
nav | The native nav element. |
ts-nav::part(list) { /* your custom styles */}<ts-nav variant="sidebar">Content</ts-nav>import { TsNav } from '@tessera-ui/react';
<TsNav variant="sidebar">Content</TsNav>