UNPKG

463 BTypeScriptView Raw
1import { Interpolation } from '@mui/system';
2import { ComponentsPropsList } from './props';
3
4export type ComponentsVariants<Theme = unknown> = {
5 [Name in keyof ComponentsPropsList]?: Array<{
6 props:
7 | Partial<ComponentsPropsList[Name]>
8 | ((
9 props: Partial<ComponentsPropsList[Name]> & {
10 ownerState: Partial<ComponentsPropsList[Name]>;
11 },
12 ) => boolean);
13 style: Interpolation<{ theme: Theme }>;
14 }>;
15};