question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

image image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:30
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

17reactions
Jackbaudecommented, May 6, 2021

Has there been any update on this?

6reactions
segunadebayocommented, Apr 7, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found