2024-11-30 02:19:32 +01:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
|
import { Primitive, type PrimitiveProps } from "radix-vue";
|
|
|
|
|
import type { HTMLAttributes } from "vue";
|
|
|
|
|
|
|
|
|
|
const props = withDefaults(
|
|
|
|
|
defineProps<PrimitiveProps & { class?: HTMLAttributes["class"] }>(),
|
|
|
|
|
{
|
|
|
|
|
as: "div",
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<Primitive
|
|
|
|
|
:as="props.as"
|
|
|
|
|
:as-child="props.asChild"
|
|
|
|
|
:class="
|
|
|
|
|
cn(
|
2024-12-31 15:55:02 +01:00
|
|
|
'rounded-lg border bg-card/20 backdrop-blur-xl text-card-foreground shadow-sm',
|
2024-11-30 02:19:32 +01:00
|
|
|
props.class,
|
|
|
|
|
)
|
|
|
|
|
"
|
2024-12-04 15:43:31 +01:00
|
|
|
data-component="card"
|
2024-11-30 02:19:32 +01:00
|
|
|
>
|
|
|
|
|
<slot />
|
|
|
|
|
</Primitive>
|
|
|
|
|
</template>
|