Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 06d5874

Browse files
committed
feat/ignore-props
* update readme and example
1 parent 72b9dbf commit 06d5874

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ storiesOf('Button')
3838

3939
Type: `Array`
4040

41-
If you want to ignore automatically props, you can list them. Example:
41+
Will not automatically create knobs for props whose name is in this array. Example:
4242
```js
43-
.withSmartKnobs({ ignoreProps: ['number'] })
44-
.add('example' () => <div number={date('number', date)} />)
43+
.withSmartKnobs({ ignoreProps: ['numberProp'] })
44+
.add('example', () => <div numberProp={date('date', date)} />)
4545
```
4646

4747
## Configuration:

example/stories/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ storiesOf('Manual knobs', module)
4646
storiesOf('Ignore Props', module)
4747
.addDecorator(withSmartKnobs({ ignoreProps: ['number'] }))
4848
.addDecorator(withKnobs)
49-
.add('proptypes', () => <SmartKnobedComponent number={ date('number', new Date()) } />)
49+
.add('proptypes', () => <SmartKnobedComponent number={ date('date', new Date()) } />)

0 commit comments

Comments
 (0)