@mui/material
Version:
Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.
14 lines (13 loc) • 428 B
TypeScript
import { CSSInterpolation } from '@mui/styled-engine';
import { Theme } from '../styles/createTheme';
type ThemeStyleFunction = (props: {
theme: Theme;
}) => CSSInterpolation;
/**
* Memoize style function on theme.
* Intended to be used in styled() calls that only need access to the theme.
*/
export default function memoTheme(styleFn: ThemeStyleFunction): (props: {
theme: Theme;
}) => CSSInterpolation;
export {};