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

Is there any way to easily control the size of the toggle? #170

Open
oriooctopus opened this issue Apr 21, 2021 · 1 comment
Open

Is there any way to easily control the size of the toggle? #170

oriooctopus opened this issue Apr 21, 2021 · 1 comment

Comments

@oriooctopus
Copy link

I think that controlling the size of the toggle is a common use case (in my case, I want it about 25% smaller), but I can't see any way to adjust it. Am I missing something?

@dawidmucha
Copy link

Ideally, there would be a component property called "scale", or it would work that the toggle fully fits into the parent container, but you can hard-code your desired size(width and height) inside react-toggle-track and react-toggle-thumb classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants