Skip to content
New issue

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

Ability to add an adjacent label #29

Closed
jamiewilson opened this issue Feb 4, 2021 · 2 comments
Closed

Ability to add an adjacent label #29

jamiewilson opened this issue Feb 4, 2021 · 2 comments

Comments

@jamiewilson
Copy link

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!

@luukdv
Copy link
Collaborator

luukdv commented Feb 4, 2021

@jamiewilson Sure! An example:

const [toggled, toggle] = useState()


<Hamburger toggle={toggle} toggled={toggled} />

<p onClick={() => toggle(!toggled)}>Open the menu</p>

@jamiewilson
Copy link
Author

Of course! Thank you so much for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants