@teamsnap/teamsnap-ui
Version:
a CSS component library for TeamSnap
41 lines (40 loc) • 1.29 kB
TypeScript
/**
* @name PanelCell
*
* @description
* A panel cell component is used for building tables with <Panel /> and <PanelRow /> components. See the teamsnap
* patterns library for more information https://teamsnap-ui-patterns.netlify.com/patterns/components/panel.html
*
* @example
* <PanelCell isTitle>
* PanelCell Child Data
* </PanelCell>
*
*/
import * as React from "react";
import * as PropTypes from "prop-types";
declare class PanelCell extends React.PureComponent<PropTypes.InferProps<typeof PanelCell.propTypes>, any> {
static propTypes: {
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
isTitle: PropTypes.Requireable<boolean>;
isHeader: PropTypes.Requireable<boolean>;
className: PropTypes.Requireable<string>;
mods: PropTypes.Requireable<string>;
role: PropTypes.Requireable<string>;
style: PropTypes.Requireable<object>;
otherProps: PropTypes.Requireable<object>;
};
static defaultProps: {
children: any;
isTitle: boolean;
isHeader: boolean;
className: string;
mods: any;
role: string;
style: {};
otherProps: {};
};
renderTitle: () => JSX.Element;
render(): JSX.Element;
}
export default PanelCell;