Skip to content

Commit e0fe774

Browse files
committed
Updated addon knob readme.
1 parent 89c5f3b commit e0fe774

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

addons/knobs/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,17 @@ const defaultValue = new Date('Jan 20 2017');
229229
const value = date(label, defaultValue);
230230
```
231231

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+
232243
## Typescript
233244

234245
If you are using typescript, make sure you have the type definitions installed for the following libs:

0 commit comments

Comments
 (0)