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.

14 lines 431 B
export interface ThemeWithProps { components?: any; } export type ThemedProps<Theme, Name extends keyof any> = Theme extends { components: Record<Name, { defaultProps: infer Props; }>; } ? Props : {}; export default function useThemeProps<Theme extends ThemeWithProps, Props, Name extends keyof any>(params: { props: Props; name: Name; defaultTheme?: Theme; themeId?: string; }): Props & ThemedProps<Theme, Name>;