2024-12-01 15:30:42 +01:00
|
|
|
<script setup lang="ts">
|
2025-03-28 01:16:24 +01:00
|
|
|
import { SelectLabel, type SelectLabelProps } from "reka-ui";
|
2024-12-01 15:30:42 +01:00
|
|
|
import type { HTMLAttributes } from "vue";
|
2025-06-26 22:39:02 +02:00
|
|
|
import { cn } from "@/lib/utils";
|
2024-12-01 15:30:42 +01:00
|
|
|
|
|
|
|
|
const props = defineProps<
|
|
|
|
|
SelectLabelProps & { class?: HTMLAttributes["class"] }
|
|
|
|
|
>();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2025-04-10 13:55:56 +02:00
|
|
|
<SelectLabel
|
|
|
|
|
data-slot="select-label"
|
|
|
|
|
:class="cn('px-2 py-1.5 text-sm font-medium', props.class)"
|
|
|
|
|
>
|
2024-12-01 15:30:42 +01:00
|
|
|
<slot />
|
|
|
|
|
</SelectLabel>
|
|
|
|
|
</template>
|