Skip to content

NavItem

<ts-nav-item> vv0.4.0

The ts-nav-item component.

Open in Storybook for interactive demos.

<ts-nav-item>Content</ts-nav-item>
PropertyAttributeTypeDefaultDescription
activeactivebooleanfalseWhether this item is currently active.
disableddisabledbooleanfalseWhether this item is disabled.
hrefhrefstring | undefinedThe URL to navigate to.
iconiconstring | undefinedLucide icon name to display.
EventDetailBubblesComposedDescription
tsSelectvoidYesYesEmitted when the nav item is selected.
NameDescription
*(default)*Default slot for label text.

Use ::part() to style internal elements:

PartDescription
iconThe icon wrapper.
itemThe list item wrapper.
labelThe label wrapper.
linkThe anchor or button element.
ts-nav-item::part(icon) {
/* your custom styles */
}
<ts-nav-item>Content</ts-nav-item>
import { TsNavItem } from '@tessera-ui/react';
<TsNavItem>Content</TsNavItem>