mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-23 02:53:32 +00:00
30 lines
672 B
Vue
30 lines
672 B
Vue
<script setup>
|
|
import { reactiveOmit } from "@vueuse/core";
|
|
import { ContextMenuLabel } from "reka-ui";
|
|
import { cn } from "@shared-ui/lib/utils";
|
|
|
|
const props = defineProps({
|
|
asChild: { type: Boolean, required: false },
|
|
as: { type: null, required: false },
|
|
class: { type: null, required: false },
|
|
inset: { type: Boolean, required: false },
|
|
});
|
|
|
|
const delegatedProps = reactiveOmit(props, "class");
|
|
</script>
|
|
|
|
<template>
|
|
<ContextMenuLabel
|
|
v-bind="delegatedProps"
|
|
:class="
|
|
cn(
|
|
'px-2 py-1.5 text-sm font-semibold text-foreground',
|
|
inset && 'pl-8',
|
|
props.class,
|
|
)
|
|
"
|
|
>
|
|
<slot />
|
|
</ContextMenuLabel>
|
|
</template>
|