mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-11 01:32:16 +01:00
16 lines
361 B
Vue
16 lines
361 B
Vue
<script setup lang="ts">
|
|
import { twMerge } from 'tailwind-merge';
|
|
|
|
const props = defineProps<{
|
|
value?: string;
|
|
class?: string;
|
|
}>();
|
|
</script>
|
|
|
|
<template>
|
|
<label :class="twMerge('block font-medium text-sm text-text-primary', props.class)">
|
|
<span v-if="value">{{ value }}</span>
|
|
<span v-else><slot /></span>
|
|
</label>
|
|
</template>
|