Line data Source code
1 16 : <script setup lang="ts">
2 : import { cn } from '@comfyorg/tailwind-utils'
3 :
4 : const { accent } = defineProps<{
5 : /** Leading-edge colour, e.g. `border-l-success`. */
6 : accent: string
7 : }>()
8 : </script>
9 :
10 : <template>
11 2355 : <div
12 : :class="
13 : cn(
14 : 'pointer-events-auto relative flex items-center gap-12 rounded-lg border border-l-4 bg-background p-4 shadow-md',
15 : accent
16 : )
17 : "
18 : >
19 : <div class="flex min-w-0 items-center gap-2">
20 : <slot name="icon" />
21 : <div class="flex min-w-0 flex-col text-sm wrap-break-word">
22 : <span class="font-medium text-foreground">
23 : <slot name="title" />
24 : </span>
25 : <span v-if="$slots.description" class="text-muted-foreground">
26 : <slot name="description" />
27 : </span>
28 : </div>
29 : </div>
30 : <slot name="actions" />
31 : </div>
32 : </template>
|