mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-13 18:52:14 +01:00
17 lines
362 B
Vue
17 lines
362 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-white', props.class)">
|
|
<span v-if="value">{{ value }}</span>
|
|
<span v-else><slot /></span>
|
|
</label>
|
|
</template>
|