I just started using storybook, and I need your help. I've four components for the different icons, and I want to create one story for all of them instead of creating story for each of them.
I've AllIcons.stories.tsx file and in this file I've this:
The problem is that I don't know what component I need to add in my export default object.
export default {
title: "Icon",
component: ListIcons,
} as Meta;
export const InterviewEndIconStory = (args: InterviewEndIconProps) => (
<InterviewEndIcon {...args} />
);
export const RunCodeIconStory = (args: RunCodeIconProps) => (
<RunCodeIcon {...args} />
);
export const TemplateEditIconStory = (args: TemplateEditIconProps) => (
<TemplateEditIcon {...args} />
);
export const VideoOffIconStory = (args: VideoOffIconProps) => (
<VideoOffIcon {...args} />
);
*.stories.tsx
file, then it is just a matter of rendering the different icons in the same story container. – Vermicular