1 | import * as React from 'react';
|
2 | import { DistributiveOmit, OverridableTypeMap } from '@mui/types';
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export type PolymorphicComponent<TypeMap extends OverridableTypeMap> = {
|
10 | <RootComponent extends React.ElementType = TypeMap['defaultComponent']>(props: PolymorphicProps<TypeMap, RootComponent>): JSX.Element | null;
|
11 | propTypes?: any;
|
12 | displayName?: string | undefined;
|
13 | };
|
14 |
|
15 |
|
16 |
|
17 | export type PolymorphicProps<TypeMap extends OverridableTypeMap, RootComponent extends React.ElementType> = TypeMap['props'] & DistributiveOmit<React.ComponentPropsWithRef<RootComponent>, keyof TypeMap['props']>;
|