/* * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ import { MenuProps } from "./types.js"; import "client-only"; import * as react_jsx_runtime67 from "react/jsx-runtime"; //#region src/components/menu/index.d.ts /** * Menu - A dropdown menu component with keyboard navigation and selection * * Provides accessible dropdown menu functionality with support for single and * multiple selection modes. Includes sections, separators, and submenu support * with comprehensive keyboard navigation and ARIA compliance. * * IMPORTANT: Menu includes its own internal Popover. Do NOT wrap Menu in a * Popover component. Use the `popoverProps` prop to configure placement and * other popover settings. * * @example * ```tsx * // Basic menu with trigger * * * * Edit * Copy * Delete * * * ``` * @example * ```tsx * // Menu with custom placement * * * * Edit * Copy * * * ``` * * @example * ```tsx * // Menu with action handler * * * console.log(key)}> * Edit * Delete * * * ``` * * @example * ```tsx * // Menu with sections and separators * * * * * New File * Open File * * * * * Settings * * * ``` * * @example * ```tsx * // Menu with selection * * * * Option 1 * Option 2 * * * ``` * * @example * ```tsx * // Menu with submenu * * * * New File * * Export * * Export as PDF * Export as CSV * Export as JSON * * * Delete * * * ``` * * @param props - {@link MenuProps} * @param props.ref - Forwarded ref to the underlying Menu element. * @param props.children - Menu items and sections to render. * @param props.classNames - CSS class names for menu elements. * @param props.popoverProps - Props passed to the internal Popover component. * @param props.selectionMode - Selection mode for menu items. * @param props.variant - Visual density variant for the menu. * @returns The rendered Menu component. */ declare function Menu({ ref, ...props }: MenuProps): react_jsx_runtime67.JSX.Element; //#endregion export { Menu }; //# sourceMappingURL=index.d.ts.map