♻️(react) migrate to Storybook 7
This new release comes with breaking changes for stories and mdx docs.
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
import { ComponentMeta, ComponentStory } from "@storybook/react";
|
||||
import { Meta, StoryFn } from "@storybook/react";
|
||||
import React from "react";
|
||||
import { Loader } from ":/components/Loader/index";
|
||||
|
||||
export default {
|
||||
title: "Components/Loader (WIP)",
|
||||
component: Loader,
|
||||
} as ComponentMeta<typeof Loader>;
|
||||
} as Meta<typeof Loader>;
|
||||
|
||||
const Template: ComponentStory<typeof Loader> = () => <Loader />;
|
||||
const Template: StoryFn<typeof Loader> = () => <Loader />;
|
||||
|
||||
export const Default = Template.bind({});
|
||||
Default.args = {};
|
||||
export const Default = {
|
||||
render: Template,
|
||||
args: {},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user