We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
icon is a required prop for FAB.
icon
FAB
Not passing in the icon prop results in a type error, but the correct behavior
A MD3 extended FAB is not required to provide an icon.
At least a icon or a label should be required
label
<FAB label="..." />
<FAB label="..." icon={undefined as unknown as IconSource} />
The text was updated successfully, but these errors were encountered:
Hey @hbriese, thanks for the feedback. I agree that we can improve types and that one of icon or label has to be required.
Sorry, something went wrong.
lukewalczak
No branches or pull requests
Current behaviour
icon
is a required prop forFAB
.Not passing in the
icon
prop results in a type error, but the correct behaviorExpected behaviour
A MD3 extended FAB is not required to provide an icon.
At least a
icon
or alabel
should be requiredHow to reproduce?
Workaround
Your Environment
The text was updated successfully, but these errors were encountered: