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

Accordions

src/components/Accordion.astro

Variables

Property Example Purpose
idproduct-detailsOptional stable prefix for generated trigger and panel ids.
ariaLabelProduct detailsAccessible name for the accordion group.
modesingleAllows one open item or several open items.
openItems["overview"]Selects initially open children by data-accordion-id.
collapsibletrueAllows the active item to close in single mode.
variantborderedSelects bordered, separated, or plain.
iconPositionendPlaces the expand/collapse icon before or after the label.
headingLevel3Sets the semantic heading level around each trigger.
data-accordion-labelIngredientsRequired child attribute used as the trigger label.
data-accordion-idingredientsOptional stable key for initial state and change events.
data-accordion-openbooleanMarks a child as initially open without using openItems.
data-accordion-disabledbooleanShows a disabled item that cannot be opened.
Keyboard and integration details

Trigger buttons work with Enter and Space. Up/Down arrows, Home, and End move focus between enabled headers. Every change emits bf-accordion-change with itemId, open, and openItems in event.detail.

Live clickable example

Each child remains ordinary Astro markup. Use single mode for a compact disclosure group, or multiple mode when users should compare several sections at once.

Forms, tables, images, explanatory text, or another reusable component.

Use a focused panel for structured values that do not need to remain visible all the time.

Multiple mode is useful when two or more related panels need to stay open for comparison.

This content is present but its trigger is disabled until the feature becomes available.