Last active
August 18, 2022 02:54
-
-
Save handrihmw/a1d2f56cd891d070db49ac2586a284e3 to your computer and use it in GitHub Desktop.
Accordion Content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="as-accordion__body" v-if="visible()"> | |
<div class="as-accordion__content"> | |
<slot /> | |
</div> | |
</div> | |
</template> | |
<script setup> | |
import { inject } from "vue"; | |
const visible = inject("visible"); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment