Switch component read-only?

Title says it all. Currently not able to set "read-only" to switch-box component.
Available for text-input, number-input etc.

Any way to achieve this with custom css meanwhile?

Using "disabled" attribute add transparency to the switch which is not desired...

top with "disabled", bottom one without.
image

I don't believe that's possible - read-only is for input fields where the user is able to type but the switch box obviously doesn't have this.
The way to indicate to the user that the control isn't active is to disable it, which visually changes the styling.

Can you explain the use case where you want a control which is disabled and can't be used but want it to appear active?