From 0f936ec0e7606cb79434d94096b6e113a7ce78eb Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 15 Dec 2023 18:35:16 +0100 Subject: refactor(stories): migrate stories to CSF3 format --- .../buttons/back-to-top/back-to-top.stories.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/components/molecules/buttons/back-to-top/back-to-top.stories.ts (limited to 'src/components/molecules/buttons/back-to-top/back-to-top.stories.ts') diff --git a/src/components/molecules/buttons/back-to-top/back-to-top.stories.ts b/src/components/molecules/buttons/back-to-top/back-to-top.stories.ts new file mode 100644 index 0000000..dddfa18 --- /dev/null +++ b/src/components/molecules/buttons/back-to-top/back-to-top.stories.ts @@ -0,0 +1,18 @@ +import type { Meta, StoryObj } from '@storybook/react'; +import { BackToTop } from './back-to-top'; + +const meta = { + component: BackToTop, + title: 'Molecules/Buttons/BackToTop', +} satisfies Meta; + +export default meta; + +type Story = StoryObj; + +export const Example: Story = { + args: { + anchor: '#top', + label: 'Back to top', + }, +}; -- cgit v1.2.3