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>
|
2025-01-16 21:49:29 +01:00
|
|
|
<Primitive :as="props.as" :as-child="props.asChild" :class="cn(
|
2025-02-09 19:39:05 +01:00
|
|
|
'rounded-lg border bg-card/90 backdrop-blur-xl text-card-foreground shadow-sm',
|
2024-11-30 02:19:32 +01:00
|
|
|
props.class,
|
2025-01-16 21:49:29 +01:00
|
|
|
)
|
|
|
|
|
" data-component="card">
|
|
|
|
|
<slot />
|
|
|
|
|
</Primitive>
|
2024-11-30 02:19:32 +01:00
|
|
|
</template>
|