bobs-layout
Version:
bob's layout library. supports Container, Flex, Grid
11 lines (10 loc) • 607 B
TypeScript
import { PropsWithChildren } from 'react';
type ContainerProps<C extends React.ElementType> = {
as?: C;
maxWidth?: React.CSSProperties['maxWidth'];
minWidth?: React.CSSProperties['minWidth'];
backgroundColor?: React.CSSProperties['backgroundColor'];
css?: React.CSSProperties;
} & React.ComponentPropsWithoutRef<C>;
declare const Container: <C extends import("react").ElementType<any> = "div">({ as, maxWidth, minWidth, backgroundColor, css, children, ...attributes }: PropsWithChildren<ContainerProps<C>>) => import("react/jsx-runtime").JSX.Element;
export default Container;