mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 03:01:07 +08:00
parent
92fd9dafce
commit
a8216e7938
@ -229,6 +229,8 @@ const defaultValue = new Date('Jan 20 2017');
|
||||
const value = date(label, defaultValue);
|
||||
```
|
||||
|
||||
> Note: the default value must not change - e.g., do not do `date('Label', new Date())` or `date('Label')`
|
||||
|
||||
### withKnobs vs withKnobsOptions
|
||||
|
||||
If you feel like this addon is not performing well enough there is an option to use `withKnobsOptions` instead of `withKnobs`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user