mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-11 20:18:30 +08:00
16 lines
460 B
Vue
16 lines
460 B
Vue
|
|
<script setup lang="ts">
|
||
|
|
import { CollapsibleContent, type CollapsibleContentProps } from 'radix-vue'
|
||
|
|
import { cn } from '@/lib/utils'
|
||
|
|
|
||
|
|
const props = defineProps<CollapsibleContentProps & { class?: string }>()
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<CollapsibleContent
|
||
|
|
v-bind="props"
|
||
|
|
:class="cn('overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down', props.class)"
|
||
|
|
>
|
||
|
|
<slot />
|
||
|
|
</CollapsibleContent>
|
||
|
|
</template>
|