1
0
Fork 0
react-playground/node_modules/@mui/system/styleFunctionSx/defaultSxConfig.d.ts

14 lines
No EOL
513 B
TypeScript

import { StyleFunction, TransformFunction } from "../style/index.js";
type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>>;
export interface SxConfigRecord {
cssProperty?: keyof React.CSSProperties | false;
/**
* dot access in `Theme`
*/
themeKey?: string;
transform?: TransformFunction;
style?: SimpleStyleFunction<any>;
}
export type SxConfig = Record<string, SxConfigRecord>;
declare const defaultSxConfig: SxConfig;
export default defaultSxConfig;