mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
18 lines
549 B
Vue
18 lines
549 B
Vue
<script setup lang="ts">
|
|
import type { SeparatorProps } from 'reka-ui'
|
|
import type { HTMLAttributes } from 'vue'
|
|
import { reactiveOmit } from '@vueuse/core'
|
|
import { Separator } from 'reka-ui'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
const props = defineProps<SeparatorProps & { class?: HTMLAttributes['class'] }>()
|
|
|
|
const delegatedProps = reactiveOmit(props, 'class')
|
|
</script>
|
|
|
|
<template>
|
|
<Separator data-slot="command-separator" v-bind="delegatedProps" :class="cn('bg-border -mx-1 h-px', props.class)">
|
|
<slot />
|
|
</Separator>
|
|
</template>
|