More detailed example of Headless? #105
-
So when I pass a custom component to toast.custom. Can I pass props to the component? toast.custom(<MyComponent title=“Hello World” />) possible? |
Beta Was this translation helpful? Give feedback.
Answered by
wobsoriano
Jun 15, 2024
Replies: 1 comment 1 reply
-
This is how you would use a custom component with props: toast.custom(MyComponent, {
componentProps: { title: 'Hello World' }
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
arkmech
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is how you would use a custom component with props: