Skip to content

MazAccordion

MazAccordion is a standalone component that allows you to create an accordion with a title and content.

Basic usage

vue
<script lang="ts" setup>
import MazAccordion from 'maz-ui/components/MazAccordion'
</script>

<template>
  <MazAccordion>
    <template #title-1>
      Title 1
    </template>
    <template #content-1>
      Content 1
    </template>

    <template #title-2>
      Title 2
    </template>
    <template #content-2>
      Content 2
    </template>

    <template #title-3>
      Title 3
    </template>
    <template #content-3>
      Content 3
    </template>

    <template #title-4>
      Title 4
    </template>
    <template #content-4>
      Content 4
    </template>
    <MazAccordion />
  </mazaccordion>
</template>

Props

NameDescriptionTypeRequiredDefault
idstringNoundefined
model-valuenumberNo0
content-classunknownNoundefined

Events

Event namePropertiesDescription
update:model-value

Slots

NameDescriptionBindings
title-${step}
content
content-${step}