@vela-ui/react
Version:
Vela UI React components
25 lines (22 loc) • 1.68 kB
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, MenuSectionProps as MenuSectionProps$1, Keyboard, MenuTrigger as MenuTrigger$1 } from 'react-aria-components';
export { SubmenuTrigger } from 'react-aria-components';
import { VariantProps } from 'tailwind-variants';
import { DropdownDescription, dropdownItemVariants, DropdownLabel, DropdownSeparator } from './dropdown.js';
import { PopoverProps } from './popover.js';
declare const MenuTrigger: typeof MenuTrigger$1;
declare const MenuSeparator: typeof DropdownSeparator;
declare const MenuLabel: typeof DropdownLabel;
declare const MenuDescription: typeof DropdownDescription;
declare function MenuPopover({ className, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
type MenuProps<T> = MenuProps$1<T>;
declare function Menu<T extends object>({ className, ...props }: MenuProps<T>): react_jsx_runtime.JSX.Element;
interface MenuItemProps extends MenuItemProps$1, VariantProps<typeof dropdownItemVariants> {
}
declare function MenuItem({ className, children, variant, ...props }: MenuItemProps): react_jsx_runtime.JSX.Element;
interface MenuSectionProps<T> extends MenuSectionProps$1<T> {
title?: string;
}
declare function MenuSection<T extends object>({ className, ...props }: MenuSectionProps<T>): react_jsx_runtime.JSX.Element;
declare function MenuShortcut({ className, ...props }: React.ComponentProps<typeof Keyboard>): react_jsx_runtime.JSX.Element;
export { Menu, MenuDescription, MenuItem, type MenuItemProps, MenuLabel, MenuPopover, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, MenuShortcut, MenuTrigger };