AccordionPrimary

Interactive documentation for the primary accordion component. Change props in the playground, inspect color, size, chip, icon, and avatar states.

Preview

Code

<AccordionPrimary
  v-model="open"
  label="Categories"
  icon="lucide:bike"
  :chip-props="chipProps"
>
  <p>Accordion content here</p>
</AccordionPrimary>

Sizes

Available sizes: l, xl, and 2xl.

Colors

Color variants for dark, light, and cocaine backgrounds.

Content examples

Examples with links, text content, buttons, and range filter.

Rich content

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.

Range filter

C$ 1,250 – C$ 4,500

Leading content

Examples for icon, avatar image, and avatar initials.

Icon

Accordion content here.

Avatar photo

Accordion content here.

Avatar initials

Accordion content here.

Props & Events

These tables match the current AccordionProps interface and emitted events.

AccordionPrimary props

Input props accepted by the primary accordion component.

PropTypeDefaultRequiredDescription
labelstringundefinedRequiredAccordion button label.
disabledbooleanfalseOptionalDisables accordion toggle and applies disabled visual state.
color'dark' | 'light' | 'cocaine''dark'OptionalControls button and panel color variant.
size'l' | 'xl' | '2xl''xl'OptionalControls button height, text size, icon size, avatar size, and panel spacing.
modelValuebooleanundefinedOptionalControls open state through v-model.
iconstringundefinedOptionalLeading icon name rendered before the label.
leadingIconShape'square' | 'rect''square'OptionalControls leading icon rendering shape.
chipProps ChipProps undefinedOptional Props passed to the trailing Chip component. See Chip
leadingAvatarstringundefinedOptionalLeading avatar image source. If provided as empty string, icon avatar fallback is shown.
leadingAvatarInitialsstring''OptionalInitials used by leading avatar fallback.
leadingAvatarChipbooleanfalseOptionalWraps leading avatar with Chip.

Events

Events emitted by AccordionPrimary.

EventPayloadDescription
update:modelValuebooleanEmitted when accordion open state changes.