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
57 lines (54 loc) • 1.61 kB
TypeScript
/**
*
* PanelMenu is a hybrid of accordion-tree components.
*
* [Live Demo](https://www.primereact.org/panelmenu/)
*
* @module panelmenu
*
*/
import * as React from 'react';
import { CSSTransitionProps } from '../csstransition';
import { MenuItem } from '../menuitem';
/**
* Defines valid properties in PanelMenu component. In addition to these, all properties of HTMLDivElement can be used in this component.
* @group Properties
*/
export interface PanelMenuProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
/**
* An array of menuitems.
*/
model?: MenuItem[] | undefined;
/**
* Whether multiple tabs can be activated at the same time or not.
* @defaultValue false
*/
multiple?: boolean | undefined;
/**
* The properties of CSSTransition can be customized, except for "nodeRef" and "in" properties.
*/
transitionOptions?: CSSTransitionProps | undefined;
/**
* Used to get the child elements of the component.
* @readonly
*/
children?: React.ReactNode | undefined;
}
/**
* **PrimeReact - PanelMenu**
*
* _PanelMenu is a hybrid of accordion-tree components._
*
* [Live Demo](https://www.primereact.org/panelmenu/)
* --- ---
* 
*
* @group Component
*/
export declare class PanelMenu extends React.Component<PanelMenuProps, any> {
/**
* Used to get container element.
* @return {HTMLDivElement} Container element
*/
public getElement(): HTMLDivElement;
}