Skip to content
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

[TypeScript] Fix <Button> component prop type #7664

Merged
merged 1 commit into from
May 9, 2022

Conversation

okovpashko
Copy link
Contributor

The "component" prop allows passing the tag or component that will be rendered as a button
ReactNode refers to a string, number, null, undefined, boolean, React element, fragment, or portal
ElementType refers to an HTML tag name, React class or functional component

The "component" prop allows passing the tag or component that will be rendered as a button
`ReactNode` refers to a string, number, null, undefined, boolean, React element, fragment, or portal
`ElementType` refers to an HTML tag name, React class or functional component
@djhi djhi added this to the 4.0.4 milestone May 9, 2022
@djhi
Copy link
Collaborator

djhi commented May 9, 2022

Thanks!

@djhi djhi merged commit b0d594f into marmelab:master May 9, 2022
@okovpashko okovpashko deleted the patch-1 branch May 9, 2022 14:55
@fzaninotto fzaninotto changed the title Fix type of Button's "component" prop [TypeScript] Fix <Button component> prop type May 9, 2022
@okovpashko okovpashko changed the title [TypeScript] Fix <Button component> prop type [TypeScript] Fix <Button> component prop type May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants