Closed jamiewilson closed 3 years ago
@jamiewilson Sure! An example:
const [toggled, toggle] = useState()
<Hamburger toggle={toggle} toggled={toggled} />
<p onClick={() => toggle(!toggled)}>Open the menu</p>
Of course! Thank you so much for the help.
I was curious if theres a way to add a label next to the icon (e.g. "Menu") that would also toggle the icon animation. Thanks for the help and for publishing this project!