UNPKG

@wonderflow/react-components

Version:

UI components from Wonderflow's Wanda design system

23 lines 1.1 kB
import { ForwardRefExoticComponent, HTMLAttributes, ReactNode } from 'react'; import { Polymorphic } from '../..'; import { MenuItem, MenuItemProps } from './menu-item/menu-item'; import { MenuItemCheckbox, MenuItemCheckboxProps } from './menu-item/menu-item-checkbox'; import { MenuSeparator } from './menu-separator/menu-separator'; export declare type MenuProps = HTMLAttributes<HTMLUListElement> & { /** * The items of the menu. */ children: ReactNode; /** * Set a maximum height of the menu after which it will scroll. */ maxHeight?: string; }; declare type MenuComponent = ForwardRefExoticComponent<MenuProps> & { Item: Polymorphic.ForwardRefComponent<Polymorphic.IntrinsicElement<typeof MenuItem>, Polymorphic.OwnProps<typeof MenuItem> & MenuItemProps>; ItemCheckbox: Polymorphic.ForwardRefComponent<Polymorphic.IntrinsicElement<typeof MenuItemCheckbox>, Polymorphic.OwnProps<typeof MenuItemCheckbox> & MenuItemCheckboxProps>; Separator: typeof MenuSeparator; }; export declare const Menu: MenuComponent; export {}; //# sourceMappingURL=menu.d.ts.map