mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-18 05:02:24 +08:00
Added withKnobs options test case
This commit is contained in:
parent
c9693d5180
commit
05c11dde57
@ -186,6 +186,14 @@ storiesOf('Addons|Knobs.withKnobs', module)
|
||||
knobs: { escapeHTML: false },
|
||||
});
|
||||
|
||||
storiesOf('Addons|Knobs.withKnobs using options', module)
|
||||
.addDecorator(
|
||||
withKnobs({
|
||||
escapeHTML: false,
|
||||
})
|
||||
)
|
||||
.add('accepts options', () => <div>{text('Rendered string', '<h1>Hello</h1>')}</div>);
|
||||
|
||||
storiesOf('Addons|Knobs.withKnobsOptions', module)
|
||||
.addDecorator(
|
||||
withKnobsOptions({
|
||||
|
Loading…
x
Reference in New Issue
Block a user