UNPKG

@mui/system

Version:

MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.

18 lines 910 B
import * as React from 'react'; import { Interpolation, MUIStyledComponent as StyledComponent } from '@mui/styled-engine'; import { OverridableComponent } from '@mui/types'; import { ContainerProps, ContainerTypeMap } from "./ContainerProps.js"; import { Theme as DefaultTheme } from "../createTheme/index.js"; interface StyleFnProps<Theme> extends ContainerProps { theme: Theme; ownerState: ContainerProps; } type RequiredThemeStructure = Pick<DefaultTheme, 'breakpoints' | 'spacing'>; export default function createContainer<Theme extends RequiredThemeStructure = DefaultTheme>(options?: { createStyledComponent?: (...styles: Array<Interpolation<StyleFnProps<Theme>>>) => StyledComponent<ContainerProps>; useThemeProps?: (inProps: ContainerProps) => ContainerProps & { component?: React.ElementType; }; componentName?: string; }): OverridableComponent<ContainerTypeMap<{}, "div">>; export {};