mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-07 10:12:27 +08:00
24 lines
455 B
Vue
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>
|