How to use decimal / float in Storybook control type? #16424
Unanswered
nrakochy
asked this question in
Documentation
Replies: 1 comment
-
Ah it appears that the issue is with the leading .123 // -> works okay
.123 and then add 0 to make .0123 // -> works okay
.0123 crashes on typing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
Thanks for the great library. I am looking at the documentation on Control Annotations but don't see how to pass a decimal / float that is less than 1 to a story as an arg. How might I go about that?
For context, we need to pass
N
number of decimal places as a step size, whose scale can be quite small. When I usenumber
+0.0SomeExampleDigits
, Storybook crashes.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions