UNPKG

light-layout-component

Version:

easy and useful layout component

23 lines (22 loc) 808 B
import { PropsWithChildren } from "react"; import { AsType, NumberUnitType } from "../../types"; type MediaTargetType = "mobile" | "tablet" | "desktop"; interface ContainerCssProps { id?: string; minWidth?: NumberUnitType | "none"; maxWidth?: NumberUnitType | "none"; minHeight?: NumberUnitType | "none"; maxHeight?: NumberUnitType | "none"; padding?: NumberUnitType; margin?: NumberUnitType; background?: string; borderRadius?: string; border?: string; overflow?: string; } interface ContainerProps extends ContainerCssProps { as?: AsType; mediaTarget?: MediaTargetType; } declare const Container: ({ as, mediaTarget, minWidth, maxWidth, ...props }: PropsWithChildren<ContainerProps>) => import("react/jsx-runtime").JSX.Element; export default Container;