BrixFax Home

Tableau de Bord

Components

Reusable component catalogue, usage register, variables, and live examples.

Used in

No production-page use is registered yet.

Selected component

Menus

src/components/Menu.astro
Property Example Purpose
idadmin-componentsOptional stable prefix for generated submenu ids.
ariaLabelComponents navigationAccessible name for the navigation landmark.
orientationverticalSelects a vertical or horizontal top-level layout.
variantpanelSelects plain, panel, or pills.
densitycompactSelects compact or comfortable item spacing.
alignmentstretchAligns vertical items or distributes horizontal items.
activeItemmenuMarks the matching data-menu-id and its parent trail as active.
submenuModecollapsibleKeeps groups visible or generates accessible disclosure buttons.
openItems["components"]Selects initially open groups by data-menu-id.
modemultipleAllows one open collapsible group or several.
data-menu-labelComponentsMarks a wrapper as a submenu group and supplies its label.
data-menu-idaccordionStable item or group key used by active state, opening, and events.
data-menu-activebooleanMarks an individual item active directly in the slotted markup.
data-menu-openbooleanMarks a collapsible group initially open without using openItems.
data-menu-disabledbooleanShows an unavailable link or group without allowing interaction.
Accessibility and integration details

The root remains a semantic nav; normal links retain browser Tab navigation. Collapsible groups use real buttons with aria-expanded and aria-controls. Every group change emits bf-menu-toggle with itemId, open, and openItems in event.detail.

Route definitions, role checks, and translation belong to the parent application component. This reusable menu handles only presentation, active trails, disabled items, and submenu behavior.