You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
473 B
Vue
16 lines
473 B
Vue
<script setup lang="ts">
|
|
import type { CollapsibleRootEmits, CollapsibleRootProps } from 'radix-vue';
|
|
import { CollapsibleRoot, useForwardPropsEmits } from 'radix-vue';
|
|
|
|
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>
|