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
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
| id | string | No | undefined | |
| model-value | number | No | 0 | |
| content-class | unknown | No | undefined |
Events
| Event name | Properties | Description |
|---|---|---|
| update:model-value |
Slots
| Name | Description | Bindings |
|---|---|---|
title-${step} | ||
| content | ||
content-${step} |