UNPKG

collapsable-panel

Version:

Panel with title and icon collapsable

29 lines (28 loc) 861 B
import { SvgIconProps } from '@material-ui/core'; import React, { ReactElement } from 'react'; interface classes { root?: string; title?: string; contentContainer?: string; } interface SectionHeaderProps { title: string | ReactElement; iconComponent: React.JSXElementConstructor<SvgIconProps>; children: ReactElement; hideable?: boolean; hiddenInit?: boolean; classes?: classes; } declare const CollapsablePanel: { ({ title, iconComponent: IconComponent, children, hideable, hiddenInit, classes: classesAttr, }: SectionHeaderProps): React.ReactElement; defaultProps: { hideable: boolean; hiddenInit: boolean; classes: { root: string; title: string; contentContainer: string; }; }; }; export default CollapsablePanel;