Files
BRETT/app/components/ui/field/FieldTitle.vue
T
2026-10-03 20:07:49 +02:00

21 lines
421 B
Vue

<script setup lang="ts">
import type { HTMLAttributes } from 'vue'
import { cn } from '@/lib/utils'
const props = defineProps<{
class?: HTMLAttributes['class']
}>()
</script>
<template>
<div
data-slot="field-label"
:class="cn(
'gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug',
props.class,
)"
>
<slot />
</div>
</template>