Replies: 3 comments
-
I guess no way |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can set the width of a track element and set a matching translation for thumb anatomy part.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
If anyone else is looking for this. Here's a handy function for defining some of these traits:
Then you can just:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
<Switch sx={{ 'span.chakra-switch__track:not([data-checked])': { backgroundColor: 'pink.300' } }} />
in the above example we can set custom bg for switch . . like the above example can anyone please help me like how can I change the width of the switch in chakra UI? by default we can only use size=sm or md or lg etc . .what I wanted is that I could be able to set custom width like width='30px' of the switch. Is there any way to achieve this ?
Beta Was this translation helpful? Give feedback.
All reactions