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 support for numeric literal types #42

Open
jc-1234 opened this issue Jul 9, 2020 · 0 comments
Open

Add support for numeric literal types #42

jc-1234 opened this issue Jul 9, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jc-1234
Copy link

jc-1234 commented Jul 9, 2020

We have a component with a size prop of numeric literal type.
size?: 14 | 20 | 24 | 32 | 48;

It would be nice to have native support for a knob that can take in a list of values. We already have a documentation tool that tells us the possible values for literal types. We want the same behavior as Enum PropType but currently Enum only works with string literal type.

@tajo tajo added enhancement New feature or request good first issue Good for newcomers labels Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants