Closed sreejith-ms closed 4 years ago
@sreejith-ms
Oh thank you for question :) https://storybook.js.org/docs/react/api/csf
export default {
title: 'Example/Button',
component: Button,
argTypes: {
backgroundColor: { control: 'color' },
},
decorators: [withKnobs, withPreview],
} as Meta;
export const LoggedIn = Template.bind({});
LoggedIn. parameters = {
preview: [
.....
],
}
@daybrush Thank you, that works.
Is it possible to load ts source code in previewTemplate
?
@sreejith-ms
uhmm shouldn't you use something like a raw-loader?
Hi,
The Preview addon is working fine when I use the format defined in the documentation.
stories.addDecorator(withKnobs).addDecorator(withPreview);
But how can I use this with the Component Story Format?