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

[Feature] Reduce the number of props #95

Open
alamenai opened this issue Jul 6, 2021 · 0 comments
Open

[Feature] Reduce the number of props #95

alamenai opened this issue Jul 6, 2021 · 0 comments

Comments

@alamenai
Copy link

alamenai commented Jul 6, 2021

I've noticed that you used many properties though there are ones that can be reduced in one property.

Current

<Switch
    backgroundActive={'green'}
    backgroundInactive={'gray'}
  />

Suggested

<Switch
    background={active:'green',inActive:'gray'}
  />
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

1 participant