14 lines
471 B
TypeScript
14 lines
471 B
TypeScript
import { OverridableComponent } from '@mui/types';
|
|
import { BoxTypeMap } from './Box';
|
|
import { Theme as SystemTheme } from './createTheme';
|
|
|
|
export default function createBox<
|
|
T extends object = SystemTheme,
|
|
AdditionalProps extends Record<string, unknown> = {},
|
|
>(options?: {
|
|
themeId?: string;
|
|
defaultTheme: T;
|
|
defaultClassName?: string;
|
|
generateClassName?: (componentName: string) => string;
|
|
}): OverridableComponent<BoxTypeMap<AdditionalProps, 'div', T>>;
|