import React from 'react'; import PropTypes from 'prop-types'; import { StandardProps } from '../../util/component-types'; export interface IPanelHeaderProps extends StandardProps, React.DetailedHTMLProps, HTMLElement> { description?: string; } export interface IPanelFooterProps extends StandardProps, React.DetailedHTMLProps, HTMLElement> { description?: string; } export interface IPanelProps extends StandardProps, React.DetailedHTMLProps, HTMLDivElement> { /** *Child Element* - Header contents. Only one \`Header\` is used. */ Header?: React.ReactNode & { props: IPanelHeaderProps; }; /** *Child Element* - Footer contents. Only one \`Footer\` is used. */ Footer?: React.ReactNode & { props: IPanelFooterProps; }; /** If set to true, creates a content section with no padding. */ isGutterless: boolean; /** If set to false, removes margin around the Panel */ hasMargin: boolean; /** If set to true, makes content overflow scrollable, when Panel has a set * height. */ isScrollable: boolean; } export declare const Panel: { (props: IPanelProps): React.ReactElement; defaultProps: { isGutterless: boolean; hasMargin: boolean; isScrollable: boolean; }; displayName: string; peek: { description: string; categories: string[]; }; propTypes: { /** Appended to the component-specific class names set on the root element. */ className: PropTypes.Requireable; Header: PropTypes.Requireable; /** *Child Element* - Footer contents. Only one \`Footer\` is used. */ Footer: PropTypes.Requireable; /** Generally you should only have a single child element so the centering works correctly. */ children: PropTypes.Requireable; /** If set to true, creates a content section with no padding. */ isGutterless: PropTypes.Requireable; /** Styles that are passed through to root element. */ style: PropTypes.Requireable; /** If set to true, makes content overflow scrollable, when Panel has a set height. */ isScrollable: PropTypes.Requireable; }; Header: { (_props: IPanelHeaderProps): null; displayName: string; peek: { description: string; }; propTypes: { description: PropTypes.Requireable; children: PropTypes.Requireable; }; propName: string; }; Footer: { (_props: IPanelFooterProps): null; displayName: string; peek: { description: string; }; propTypes: { description: PropTypes.Requireable; children: PropTypes.Requireable; }; propName: string; }; }; export default Panel; //# sourceMappingURL=Panel.d.ts.map