Files
LuminPro/webui/src/components/ui/Label.vue
T
2026-04-10 01:59:23 +08:00

23 lines
433 B
Vue

<script setup>
import { cn } from '@/lib/utils'
const props = defineProps({
class: { type: String, default: '' },
for: { type: String, default: undefined },
})
</script>
<template>
<label
:for="props.for"
:class="
cn(
'text-sm font-medium leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
props.class,
)
"
>
<slot />
</label>
</template>