Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Apr 27, 2023
1 parent c2f2fc2 commit 3106bcf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/mui-base/src/FormControl/FormControl.types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { OverrideProps, Simplify } from '@mui/types';
import { SlotComponentProps } from '../utils';
import { Simplify } from '@mui/types';
import { PolymorphicProps, SlotComponentProps } from '../utils';

export type NativeFormControlElement = HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement;

Expand Down Expand Up @@ -72,9 +72,7 @@ export interface FormControlTypeMap<

export type FormControlProps<
RootComponentType extends React.ElementType = FormControlTypeMap['defaultComponent'],
> = OverrideProps<FormControlTypeMap<{}, RootComponentType>, RootComponentType> & {
component?: RootComponentType;
};
> = PolymorphicProps<FormControlTypeMap<{}, RootComponentType>, RootComponentType>;

type NonOptionalOwnerState = 'disabled' | 'error' | 'required';

Expand Down

0 comments on commit 3106bcf

Please sign in to comment.