import classNames from 'classnames'; import { FC, WebCellProps } from 'web-cell'; import { Size } from '../type'; export interface ContainerProps extends WebCellProps { fluid?: boolean | Size; } export const Container: FC = ({ className = '', fluid, children, ...props }) => (
{children}
); export type RowProps = Partial> & WebCellProps; export const Row: FC = ({ className, xs, sm, md, lg, xl, xxl, children, ...props }) => { const size = xs || sm || md || lg || xl || xxl; const columnClass = size ? `row-cols${ xs ? '' : sm ? '-sm' : md ? '-md' : lg ? '-lg' : xl ? '-xl' : xxl && '-xxl' }-${size}` : ''; return (
{children}
); }; export type ColProps = RowProps; export const Col: FC = ({ className, xs, sm, md, lg, xl, xxl, children, ...props }) => { const size = xs || sm || md || lg || xl || xxl; const columnClass = size ? `col${ xs ? '' : sm ? '-sm' : md ? '-md' : lg ? '-lg' : xl ? '-xl' : xxl && '-xxl' }-${size}` : ''; return (
{children}
); };