vira - v26.5.6
    Preparing search index...

    Type Alias MenuItem

    MenuItem: { id: PropertyKey; label: string | HTMLTemplateResult } & PartialWithUndefined<
        { disabled: boolean; route: ViraLinkRoute; titleText: string },
    >

    An individual menu item consumed partially by ViraMenuItem and used by ViraMenu.

    Type declaration

    • id: PropertyKey

      Each id must be unique across all items in a single menu.

    • label: string | HTMLTemplateResult

      The user-facing label for this menu item.

      Optionally, this can be a custom HTML template. This will replace the menu item text and icon content, but will still be styled correctly if used within ViraMenu. Feel free to use ViraMenuItem as the template with a custom <slot> to keep the selected checkmark functionality.