Files
template-vue-hucky/src/components/ui/native-select/NativeSelectOption.vue

19 lines
426 B
Vue
Raw Normal View History

2026-01-31 00:00:46 +08:00
<!-- @fallthroughAttributes true -->
<!-- @strictTemplates true -->
<script setup lang="ts">
2026-01-31 02:54:00 +08:00
import type { HTMLAttributes } from "vue";
import { cn } from "@/lib/utils";
2026-01-31 00:00:46 +08:00
2026-01-31 02:54:00 +08:00
const props = defineProps<{ class?: HTMLAttributes["class"] }>();
2026-01-31 00:00:46 +08:00
</script>
<template>
2026-01-31 02:54:00 +08:00
<option
data-slot="native-select-option"
:class="cn('bg-popover text-popover-foreground text-black', props.class)"
>
2026-01-31 00:00:46 +08:00
<slot />
</option>
</template>