UNPKG

primereact

Version:

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

65 lines (62 loc) 1.82 kB
/** * * Manubar is an input component that provides real-time suggestions when being typed. * * [Live Demo](https://www.primereact.org/menubar/) * * @module menubar * */ import * as React from 'react'; import { MenuItem } from '../menuitem'; /** * Defines valid properties in Menubar component. In addition to these, all properties of HTMLDivElement can be used in this component. * @group Properties */ export interface MenubarProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> { /** * An array of menuitems. */ model?: MenuItem[] | undefined; /** * The template of starting element. */ start?: React.ReactNode | ((props: MenubarProps) => React.ReactNode); /** * The template of trailing element. */ end?: React.ReactNode | ((props: MenubarProps) => React.ReactNode); /** * Used to get the child elements of the component. * @readonly */ children?: React.ReactNode | undefined; } /** * **PrimeReact - Menubar** * * _Manubar is an input component that provides real-time suggestions when being typed._ * * [Live Demo](https://www.primereact.org/menubar/) * --- --- * ![PrimeReact](https://primefaces.org/cdn/primereact/images/logo-100.png) * * @group Component */ export declare class Menubar extends React.Component<MenubarProps, any> { /** * Used to get container element. * @return {HTMLDivElement} Container element */ public getElement(): HTMLDivElement; /** * Used to get root menu element. * @return {HTMLElement} Root menu element */ public getRootMenu(): HTMLElement; /** * Used to get menu button element. * @return {HTMLElement} Menu button element */ public getMenuButton(): HTMLElement; }