Skip to content
#

playground

Here are 1,537 public repositories matching this topic...

react-view
jc-1234
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.

Improve this page

Add a description, image, and links to the playground topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the playground topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.