Skip to content
New issue

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

Add a label prop for Switch #27

Open
Vehmloewff opened this issue Jul 8, 2019 · 0 comments
Open

Add a label prop for Switch #27

Vehmloewff opened this issue Jul 8, 2019 · 0 comments
Labels
enhancement Feature request that is not a new component

Comments

@Vehmloewff
Copy link
Member

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.

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.

Example:

Without left:

<Switch on={true} label="Allow notfications"/>

Screen Shot 2019-07-08 at 4 10 14 PM

With left:

<Switch on={true} label="Allow notfications" left={true}/>

Screen Shot 2019-07-08 at 4 10 41 PM

@Vehmloewff Vehmloewff added the enhancement Feature request that is not a new component label Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request that is not a new component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant