Skip to content

Commit

Permalink
Make component prop optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sydneyjodon-wk committed May 2, 2024
1 parent 7bc7de6 commit d008493
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mui-material/src/OverridableComponent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface OverridableComponent<TypeMap extends OverridableTypeMap> {
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
component: RootComponent;
component?: RootComponent;
} & OverrideProps<TypeMap, RootComponent>,
): JSX.Element | null;
(props: DefaultComponentProps<TypeMap>): JSX.Element | null;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export interface OverridableComponent<M extends OverridableTypeMap> {
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
component: C;
component?: C;
} & OverrideProps<M, C>,
): JSX.Element | null;
(props: DefaultComponentProps<M>): JSX.Element | null;
Expand Down

0 comments on commit d008493

Please sign in to comment.