Switch should be able to have an Icon on its slider
See original GitHub issue🚀 Feature request
Switch to have an Icon/ Element in it
🧱 Problem Statement / Justification
I want my darkmode switch to have an icon showing whether its in dark mode or light mode. This could be done with a normal button but I like the satisfaction of the switch, however, the switch does not allow to have an icon in it.
✅ Proposed solution or API
Have a prop for <Switch/>
to add a element, such as an Icon.
↩️ Alternatives
Like I said I could use a button but I want to be able to use this with a swtich.
📝 Additional Information
Issue Analytics
- State:
- Created 3 years ago
- Reactions:30
- Comments:8 (1 by maintainers)
Top Results From Across the Web
What is the disappearing slider icon that… - Apple Community
The indicate the new swipe down for control center from the lock screen. Once you've swiped to get the control center, they stop...
Read more >Slider Preferences For Your Smart Dimmer Switch
Tap the gear icon next to the Switch that you want to adjust the slider for; Tap the gear icon next to Slider...
Read more >Toggle-Switch Guidelines - Nielsen Norman Group
Ensure toggle switches look like sliders and utilize visual cues (i.e. movement and color) to avoid confusion. First and foremost, when a user ......
Read more >69 Slide Toggle Icons - Free in SVG, PNG, ICO - IconScout
Download 69 Slide Toggle Vector Icons for commercial and personal use. Available for free or premium in line, flat, gradient, isometric, glyph, ...
Read more >How to Update Nintendo Switch Sports
Save data will still be available for use after downloading the update. ... From the HOME Menu, select the icon for the software...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Has there been any update on this?
After much thought, I really think this should be a “recipe” or Codesandbox “example”. We don’t have plans to add this component.
@jatin33, if you want, please create an example that uses the internal implementation of Switch, we can add it as a recipe and post it in our discord as well.
Thank you.