s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Svelte · Workspace

TenantNav

No summary has been written for TenantNav. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.

Public export

typescript
import { TenantNav } from '@happyvertical/smrt-svelte/workspace';
Import path
@happyvertical/smrt-svelte/workspace
Props
5
Props described
5 of 5
Bindable state
0
Callback events
1
Verified release
0.44.0

Props

NameTypeRequiredDescription
itemsShellNavItem[]YesNavigation items with href, label, icon, and optional children.
currentHrefstringNoCurrent URL to highlight the active navigation link.
iconComponentComponent<{ name: string; size?: number; }>NoComponent used to render icon names as SVG or custom icons.
collapsedbooleanNoHide labels and show only icons in a compact layout.
onNavigate() => voidNoCalled when the user clicks a navigation link.

Bindable state

This component has no bindable public state.

Callback events

  • onNavigate() => void

Examples and explanation