Files
solidtime/resources/js/packages/ui/src/command/CommandSeparator.vue
2026-02-11 17:29:41 +01:00

18 lines
526 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 '../utils/cn';
const props = defineProps<SeparatorProps & { class?: HTMLAttributes['class'] }>();
const delegatedProps = reactiveOmit(props, 'class');
</script>
<template>
<Separator v-bind="delegatedProps" :class="cn('-mx-1 h-px bg-border', props.class)">
<slot />
</Separator>
</template>