2024-11-30 02:19:32 +01:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { cn } from "@/lib/utils";
|
2024-11-30 17:17:16 +01:00
|
|
|
import { Primitive, type PrimitiveProps } from "radix-vue";
|
2024-11-30 02:19:32 +01:00
|
|
|
import type { HTMLAttributes } from "vue";
|
|
|
|
|
|
2024-11-30 17:17:16 +01:00
|
|
|
const props = withDefaults(
|
|
|
|
|
defineProps<PrimitiveProps & { class?: HTMLAttributes["class"] }>(),
|
|
|
|
|
{
|
|
|
|
|
as: "div",
|
|
|
|
|
},
|
|
|
|
|
);
|
2024-11-30 02:19:32 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2024-11-30 17:17:16 +01:00
|
|
|
<Primitive :as="props.as" :as-child="props.asChild" :class="cn('flex flex-col gap-y-1.5 p-6', props.class)">
|
|
|
|
|
<slot />
|
|
|
|
|
</Primitive>
|
2024-11-30 02:19:32 +01:00
|
|
|
</template>
|