Replies: 2 comments 5 replies
-
Our Buttons don't have any slots like start or end and we don't have an Icon component in RAC either, can you share a codesandbox with what you're trying to do? Otherwise, my best guess for this would be you just need to provide a default for the slot prop inside the Icon component |
Beta Was this translation helpful? Give feedback.
1 reply
-
There is a |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys,
Is there a way to set a default slot within the context? I have two buttons - one with start and end icons and the other with only one icon. I currently use slots to pass props to these icons, but I would like to avoid passing a slot to the button with only an icon.
Examples.
I got an error here because a slot prop is required.
Beta Was this translation helpful? Give feedback.
All reactions