mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
16 lines
461 B
Vue
16 lines
461 B
Vue
<script setup lang="ts">
|
|
import type { CollapsibleRootEmits, CollapsibleRootProps } from "reka-ui";
|
|
import { CollapsibleRoot, useForwardPropsEmits } from "reka-ui";
|
|
|
|
const props = defineProps<CollapsibleRootProps>();
|
|
const emits = defineEmits<CollapsibleRootEmits>();
|
|
|
|
const forwarded = useForwardPropsEmits(props, emits);
|
|
</script>
|
|
|
|
<template>
|
|
<CollapsibleRoot v-slot="{ open }" v-bind="forwarded">
|
|
<slot :open="open" />
|
|
</CollapsibleRoot>
|
|
</template>
|