Files
Aether/frontend/src/components/ui/label.vue
2025-12-10 20:52:44 +08:00

24 lines
455 B
Vue

<template>
<label :class="labelClass">
<slot />
</label>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import { cn } from '@/lib/utils'
interface Props {
class?: string
}
const props = defineProps<Props>()
const labelClass = computed(() =>
cn(
'text-[11px] font-semibold uppercase tracking-[0.14em] text-muted-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
props.class
)
)
</script>