We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89c5f3b + e0fe774 commit c14bf09Copy full SHA for c14bf09
1 file changed
addons/knobs/README.md
@@ -229,6 +229,17 @@ const defaultValue = new Date('Jan 20 2017');
229
const value = date(label, defaultValue);
230
```
231
232
+### withKnobs vs withKnobsOptions
233
+
234
+If you feel like this addon is not performing well enough there is an option to use `withKnobsOptions` instead of `withKnobs`.
235
+Usage:
236
+```
237
+story.addDecorator(withKnobsOptions({
238
+ debounce: { wait: number, leading: boolean}, // Same as lodash debounce.
239
+ timestamps: true // Doesn't emit events while user is typing.
240
+}));
241
242
243
## Typescript
244
245
If you are using typescript, make sure you have the type definitions installed for the following libs:
0 commit comments