ontime-components
Version:
List of react components
28 lines (27 loc) • 785 B
TypeScript
import { PureComponent } from 'react';
import { IProps } from '../../libs/interfaces';
declare type TH = 'left' | 'center' | 'right';
declare type TV = 'top' | 'middle' | 'bottom';
declare type TDirection = 'row' | 'column';
interface IContainerProps extends IProps {
h?: TH;
v?: TV;
direction?: TDirection;
full?: boolean;
space?: number;
spaceUnits?: string;
children?: any;
}
interface IContainerDefProps {
h: TH;
v: TV;
direction: TDirection;
spaceUnits: string;
full: boolean;
}
declare class Container extends PureComponent<IContainerProps & IContainerDefProps> {
static defaultProps: IContainerDefProps;
getChildren(): JSX.Element[];
render(): JSX.Element;
}
export { Container, TH, TV, TDirection, IContainerProps };