1d3efa5028
Implements WAI-ARIA APG-compliant headless menu primitive families: - menu: base primitive with MenuRoot, MenuContent, MenuItem, MenuCheckboxItem, MenuRadioGroup/Item, MenuSub, and helpers - dropdown-menu: DropdownMenuRoot with trigger anchoring - context-menu: ContextMenuRoot with right-click virtual anchor - menubar: MenubarRoot with keyboard navigation between menus Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
18 lines
432 B
Vue
18 lines
432 B
Vue
<script lang="ts">
|
|
import type { PrimitiveProps } from '../primitive';
|
|
|
|
export interface MenuSeparatorProps extends PrimitiveProps {}
|
|
</script>
|
|
|
|
<script setup lang="ts">
|
|
import { Primitive } from '../primitive';
|
|
|
|
const { as = 'div', asChild } = defineProps<MenuSeparatorProps>();
|
|
</script>
|
|
|
|
<template>
|
|
<Primitive :as="as" :as-child="asChild" role="separator" aria-orientation="horizontal">
|
|
<slot />
|
|
</Primitive>
|
|
</template>
|