Back to Tuist

SidebarItem

noora/docs/components/sidebaritem.md

4.204.0844 B
Original Source
<!-- Generated by scripts/generate-web-components.js. Do not edit directly. -->

SidebarItem

Describes one declarative sidebar destination.

html
<noora-sidebar-item href="/" icon="dashboard">Dashboard</noora-sidebar-item>

Attributes

AttributeType or allowed valuesDefaultDescription
labelstring""Sets the label instead of using text content.
hrefstring"#"Sets the navigation address.
iconstringNoneShows an icon before the label.
selectedbooleanfalseMarks the destination as the current page.

Slots

SlotDescription
defaultThe destination label.

Item

Describe one sidebar destination.

html
<noora-sidebar-item href="/" icon="dashboard">Dashboard</noora-sidebar-item>