Current section

Files

Jump to
noora docs components sidebaritem.md
Raw

docs/components/sidebaritem.md

<!-- 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
| Attribute | Type or allowed values | Default | Description |
| --- | --- | --- | --- |
| `label` | `string` | `""` | Sets the label instead of using text content. |
| `href` | `string` | `"#"` | Sets the navigation address. |
| `icon` | `string` | None | Shows an icon before the label. |
| `selected` | `boolean` | `false` | Marks the destination as the current page. |
## Slots
| Slot | Description |
| --- | --- |
| `default` | The destination label. |
## Item
Describe one sidebar destination.
```html
<noora-sidebar-item href="/" icon="dashboard">Dashboard</noora-sidebar-item>
```