We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the label prop is specified, then Switch would become a block element that gets no shorter than 48px, and just as tall as the label forces it to.
label
48px
There could also be a left prop of type boolean (default should be false) that puts the switch on the left side of the element.
left
false
Example:
Without left:
<Switch on={true} label="Allow notfications"/>
With left:
<Switch on={true} label="Allow notfications" left={true}/>
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
If the
label
prop is specified, then Switch would become a block element that gets no shorter than48px
, and just as tall as the label forces it to.There could also be a
left
prop of type boolean (default should befalse
) that puts the switch on the left side of the element.Example:
Without
left
:With
left
:The text was updated successfully, but these errors were encountered: