Files
neo/frontend/components/ui/label/Label.vue
Francisco Gaona a6f1da28b2 Code formatting
2025-11-25 23:17:54 +01:00

30 lines
593 B
Vue

<script setup lang="ts">
import type { HTMLAttributes } from 'vue'
import { reactiveOmit } from '@vueuse/core'
import { Label } from 'reka-ui'
import { cn } from '@/lib/utils'
interface Props {
for?: string
class?: HTMLAttributes['class']
}
const props = defineProps<Props>()
const delegatedProps = reactiveOmit(props, 'class')
</script>
<template>
<Label
v-bind="delegatedProps"
:class="
cn(
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
props.class
)
"
>
<slot />
</Label>
</template>