-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Option][base] Drop component prop #37052
Conversation
Netlify deploy previewhttps://deploy-preview-37052--material-ui.netlify.app/ Bundle size report |
> = OverrideProps<OptionTypeMap<OptionValue, {}, RootComponentType>, RootComponentType> & { | ||
component?: RootComponentType; | ||
}; | ||
> = PolymorphicProps<OptionTypeMap<OptionValue, {}, RootComponentType>, RootComponentType>; | ||
|
||
export interface OptionType { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OptionType
should look similar to PolymorphicComponent
(but with an additional generic OptionValue
parameter):
export type OptionType = {
<OptionValue, RootComponentType extends React.ElementType>(
props: PolymorphicProps<OptionTypeMap<OptionValue>, RootComponentType>,
): JSX.Element | null;
propTypes?: any;
displayName?: string | undefined;
};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
d8484ac
to
16deb0f
Compare
No description provided.