Storybook named default export

Viewed 194

Is it possible to use named default export in storybook file?

.... preview.stories.js

export default {
  title: "Widget/Preview",
  argTypes: {
    variant: {
      options: ["inpage", "dialog"],
      control: {
        type: "inline-radio",
      },
    },
  },
};
1 Answers

I found

"const Default = {...."
then "export default Default" works for me.

Related