hamburgers
hamburgers copied to clipboard
[Feature Request] Make it react components?
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.
Will consider this for v2
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
.
If needed there is a svelte version: https://npmjs.com/svelte-hamburgers
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.