Layout
AppSidebarOption
Renders one menu entry: a section subheader, a link or a group with its children.
components/layout/AppSidebar/AppSidebarOption.vue
Internal part
This is an internal part of AppSidebar. You normally use it through AppSidebar, but it is documented so you can customise or reuse it.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
subheader | string | — | Renders a section title instead of a link. |
first | boolean | false | Removes the top margin of the first section. |
children | AppSidebarItemDetailProps[] | [] | Child entries; turns it into a group. |
id | string | — | The id used to mark it active. |
activator-id | string | — | The id of the element that activates the item, used when a group opens its children in a menu. |
icon | string | — | The Lucide icon. |
title | string | — | The label. |
route | string | — | The route without the leading slash. |
path | string | — | An absolute URL that overrides route. |
badge | string | — | A small chip after the label. |
child-ids | string[] | — | The ids of its children, to highlight the group. |