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

[Feature Request] Make it react components? #61

Open
rockmandash opened this issue Jul 4, 2018 · 4 comments
Open

[Feature Request] Make it react components? #61

rockmandash opened this issue Jul 4, 2018 · 4 comments

Comments

@rockmandash
Copy link

Hello, first of all, thank you for this wonderful library.
As app grows, its easier to make hamburgers a react component.
Something like this

<Hamburger
  active={this.state.active}
  type="slider"
  onClick={() => this.setState({ active: !this.state.active })}
/>

And add react-emotion support, there won't be any css conflict and additional sass logic.
Thank you.

@jonsuh
Copy link
Owner

jonsuh commented Sep 25, 2018

Will consider this for v2

@camelCaseDave
Copy link

camelCaseDave commented Aug 11, 2019

See https://github.com/AuvikAlive/react-animated-burgers. The project has made animated burger buttons as react components based on this project. It's dependent on styled-components.

@ghostdevv
Copy link

If needed there is a svelte version: https://npmjs.com/svelte-hamburgers

@luigimannoni
Copy link

I've opted into hamburger-react (https://hamburger-react.netlify.app/) since react-animated-burgers linked above does not support latest React. Simple and slim, does not have the same level of customisation, though.

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

No branches or pull requests

5 participants