smooth-code / smooth-ui

Modern React UI library 💅👩‍🎤🍭

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modal component defaultToggled and open attribute

NYCJacob opened this issue · comments

I am trying to have a modal default to open but allow the user to dismiss the modal. When I use <Modal opened={true} the onClose onToggle(false) function does not close the modal. Passing defaultToggled with Toggler doesn't seem to effect the modal being opened. I was hoping I could pass defaultToggled={true} but that doesn't seem to be allowed.
Great project!

Hello @NYCJacob, can you provide a reproduction example (using CodeSanbox for an example). Thanks!

Inactive, I close it.