UNPKG

@teamsnap/teamsnap-ui

Version:

a CSS component library for TeamSnap

41 lines (40 loc) 1.34 kB
/** * @name PanelHeader * * @description * A panel header component is used with the Panel to wrap the heading content. See the teamsnap patterns * library for more information https://teamsnap-ui-patterns.netlify.com/patterns/components/panel.html * * @example * <PanelHeader> * PanelHeader Child Data * </PanelHeader> * */ import * as React from "react"; import * as PropTypes from "prop-types"; declare class PanelHeader extends React.PureComponent<PropTypes.InferProps<typeof PanelHeader.propTypes>, any> { static propTypes: { children: PropTypes.Requireable<PropTypes.ReactNodeLike>; title: PropTypes.Requireable<string>; className: PropTypes.Requireable<string>; mods: PropTypes.Requireable<string>; style: PropTypes.Requireable<PropTypes.InferProps<{}>>; headerImage: PropTypes.Requireable<PropTypes.InferProps<{ Source: PropTypes.Requireable<string>; Placeholder: PropTypes.Requireable<string>; }>>; otherProps: PropTypes.Requireable<PropTypes.InferProps<{}>>; }; static defaultProps: { children: any; title: string; className: string; mods: any; style: {}; headerImage: any; otherProps: {}; }; render(): JSX.Element; } export default PanelHeader;