custom border style
See original GitHub issueIs it possible to add border style to the component?
I want to add style for the component with react-swith-bg
class and to the component with react-switch-handle
class.
Thanks
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Add custom borders to elements - OpenClassrooms
To set individual borders, use top, right, left, and bottom (ex. border-top-style ). To curve the corners of a border, use border-radius ....
Read more >border-style - CSS: Cascading Style Sheets - MDN Web Docs
The border-style shorthand CSS property sets the line style for all four sides of an element's border. Try it. CSS Demo: border-style. Reset....
Read more >Is there a way to make a custom border in CSS?
Yes, there is a way to make custom borders with images. See this: w3schools.com/cssref/… – Azu. Oct 30, 2021 at 18:56.
Read more >CSS Borders - W3Schools
The CSS border properties allow you to specify the style, width, and color of an ... The border-style property specifies what kind of...
Read more >28 CSS Border Examples - Free Frontend
Collection of hand-picked free HTML and CSS border code examples. ... Dependencies: -. Demo image: Comic Style Border ...
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 Free
Top 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
You can’t use a border unfortunately, but you can use a box-shadow which can be made to look just like a border. Here’s an example (note the
styles.css
file). I added the following css:I’d normally recommend using the
boxShadow
andactiveBoxShadow
props to adjust the box-shadow though.I know this thread is closed but I’m in the same camp as @b-asaf. It would be nice to have the option to directly adjust the other two elements (red arrow) in addition to the two we can now (green arrow).
BTW, this is a great package. I was pulling my hair out trying to figure out how to customize react-bootstrap’s switch.