Comments (5)
Hey @NadirBakhsh,
Sure! You can do something like this:
<Hamburger color={toggled ? 'pink' : 'purple'} toggled={toggled} toggle={toggle} />
from hamburger-react.
from hamburger-react.
You can change the background color as follows:
<div style={{ background: toggled ? 'pink' : 'purple' }}>
<Hamburger />
</div>
from hamburger-react.
from hamburger-react.
What do you mean exactly? 🙂 It has a transparent background by default.
from hamburger-react.
Related Issues (20)
- Pass click event to toggle and onToggled HOT 1
- Disable colour transition HOT 4
- Close menu when Link to is clicked. HOT 1
- Module parse failed : Unexpected token HOT 3
- Styling HOT 10
- Add aria-expanded for accessibility HOT 1
- Doesn't work on mobile view HOT 1
- No animation on mobile HOT 3
- React 18 Update
- Add option for hover styles/animation HOT 3
- Change cursor style on icon hover HOT 1
- Animations not working on Chrome iOS HOT 1
- How can I adjust the visibility? HOT 2
- How can I give it custom styling specifically `z-index : 2`? HOT 1
- Highlight on mobile click HOT 4
- React Error 321 when using hamburger-react HOT 3
- Feature Request: A prop to set width of each lines or different menu style as another component HOT 2
- Prop for disabling padding HOT 2
- Looking for new owner 🍔 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hamburger-react.