Skip to content

Instantly share code, notes, and snippets.

@handrihmw
Last active August 18, 2022 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save handrihmw/a1d2f56cd891d070db49ac2586a284e3 to your computer and use it in GitHub Desktop.
Save handrihmw/a1d2f56cd891d070db49ac2586a284e3 to your computer and use it in GitHub Desktop.
Accordion Content
<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