UNPKG

primereact

Version:

PrimeReact is an open source UI library for React featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime

21 lines (15 loc) 735 B
import * as React from 'react'; import { MenuItem } from '../menuitem'; type MegaMenuOrientationType = 'vertical' | 'horizontal'; type MegaMenuStartTemplate = React.ReactNode | ((props: MegaMenuProps) => React.ReactNode); type MegaMenuEndTemplate = React.ReactNode | ((props: MegaMenuProps) => React.ReactNode); export interface MegaMenuProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> { model?: MenuItem[]; orientation?: MegaMenuOrientationType; start?: MegaMenuStartTemplate; end?: MegaMenuEndTemplate; children?: React.ReactNode; } export declare class MegaMenu extends React.Component<MegaMenuProps, any> { public getElement(): HTMLDivElement; }