storybook-state
storybook-state copied to clipboard
Story source shows wrong info when addon is used
Whenever I use a storybook-state addon in my storybook, Story Source field shows information about the state instead of showing the info about the code.
Actual Story Source
.add(
'Checkbox',
withState({ checked: false })(({ store }) => (
<Checkbox
label={text('Label', 'Example label')}
onChange={checked => store.set({ checked })}
checked={store.state.checked}
disabled={boolean('Disabled', false)}
description={text('Description', 'Example description')}
/>
))
);
Any updates on this?
Is there a fix or workaround for this?
I'm also having the same issue...
Is there a fix or workaround for this?
You can use useState
hook inside stories