mirror of
https://git.fightbot.fun/hxuanyu/BingPaper.git
synced 2026-02-15 10:19:32 +08:00
22 lines
556 B
Vue
22 lines
556 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>
|