export type { MenuItem } from './SvMenuList.svelte'; /** * SvMenu - a dropdown / context menu: a trigger opens a portalled, animated * menu surface with submenus, separators, icons, shortcuts and full keyboard * (arrows, Enter, Escape, ArrowRight/Left for submenus). Portals to so it * escapes any clipping. Parity: Smart menu / context-menu. * * ```svelte * run(i)}> * {#snippet anchor()}{/snippet} * * ``` */ import type { Snippet } from 'svelte'; import { type EditorDir } from './editor-contract'; import { type MenuItem } from './SvMenuList.svelte'; type $$ComponentProps = { items: ReadonlyArray; open?: boolean; onOpenChange?: (open: boolean) => void; onSelect?: (item: MenuItem) => void; ariaLabel?: string; anchor?: Snippet; /** Text direction (rtl mirrors the submenu chevron + flips ArrowLeft/Right). */ dir?: EditorDir; }; declare const SvMenu: import("svelte").Component<$$ComponentProps, {}, "open">; type SvMenu = ReturnType; export default SvMenu;