Read only Switch
#7131
Closed
crabvk
started this conversation in
Feature requests
Replies: 2 comments
-
Switch component is based on input[type="checkbox"], for read only, see https://stackoverflow.com/questions/155291/can-html-checkboxes-be-set-to-readonly |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you. const inert = { inert: '' as const }
<Switch {...inert} /> to make |
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
-
Now (Mantine 7.14.1)
Switch
es hasreadOnly
property, but it doesn't work. Thedisable
property can be used instead, but it makes aSwitch
value less visible.Beta Was this translation helpful? Give feedback.
All reactions