forked from BRETT/BRETT
21 lines
421 B
Vue
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>
|