mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
22 lines
591 B
Vue
22 lines
591 B
Vue
<script setup lang="ts">
|
|
import { cn } from '@/lib/utils'
|
|
import { SelectSeparator, type SelectSeparatorProps } from 'reka-ui'
|
|
import { computed, type HTMLAttributes } from 'vue'
|
|
|
|
const props = defineProps<SelectSeparatorProps & { class?: HTMLAttributes['class'] }>()
|
|
|
|
const delegatedProps = computed(() => {
|
|
const { class: _, ...delegated } = props
|
|
|
|
return delegated
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<SelectSeparator
|
|
data-slot="select-separator"
|
|
v-bind="delegatedProps"
|
|
:class="cn('bg-gray-200 pointer-events-none -mx-1 my-1 h-px dark:bg-gray-800', props.class)"
|
|
/>
|
|
</template>
|