22 lines
463 B
Vue
22 lines
463 B
Vue
<script setup lang="ts">
|
|
import type { HTMLAttributes } from "vue"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
const props = defineProps<{
|
|
class?: HTMLAttributes["class"]
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<span
|
|
data-slot="attachment-description"
|
|
:class="cn(
|
|
'mt-0.5 text-xs block min-w-0 truncate text-muted-foreground group-data-[state=error]/attachment:text-destructive/80',
|
|
'max-w-full',
|
|
props.class,
|
|
)"
|
|
>
|
|
<slot />
|
|
</span>
|
|
</template>
|