UNPKG

@mui/material

Version:

React components that implement Google's Material Design.

40 lines (36 loc) 1.04 kB
import { SxProps, SystemProps } from '@mui/system'; import { OverridableComponent, OverrideProps } from '../OverridableComponent'; import { Theme } from '../styles'; export interface BoxTypeMap<P = {}, D extends React.ElementType = 'div'> { props: P & SystemProps<Theme> & { children?: React.ReactNode; /** * The component used for the root node. * Either a string to use a HTML element or a component. */ component?: React.ElementType; ref?: React.Ref<unknown>; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps<Theme>; }; defaultComponent: D; } /** * * Demos: * * - [Box](https://mui.com/material-ui/react-box/) * * API: * * - [Box API](https://mui.com/material-ui/api/box/) */ declare const Box: OverridableComponent<BoxTypeMap>; export type BoxProps< D extends React.ElementType = BoxTypeMap['defaultComponent'], P = {}, > = OverrideProps<BoxTypeMap<P, D>, D>; export default Box;