aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/section
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/atoms/layout/section')
-rw-r--r--src/components/atoms/layout/section/section.stories.ts17
-rw-r--r--src/components/atoms/layout/section/section.stories.tsx37
2 files changed, 17 insertions, 37 deletions
diff --git a/src/components/atoms/layout/section/section.stories.ts b/src/components/atoms/layout/section/section.stories.ts
new file mode 100644
index 0000000..f8df223
--- /dev/null
+++ b/src/components/atoms/layout/section/section.stories.ts
@@ -0,0 +1,17 @@
+import type { Meta, StoryObj } from '@storybook/react';
+import { Section } from './section';
+
+const meta = {
+ component: Section,
+ title: 'Atoms/Layout/Section',
+} satisfies Meta<typeof Section>;
+
+export default meta;
+
+type Story = StoryObj<typeof meta>;
+
+export const Example: Story = {
+ args: {
+ children: 'The section contents.',
+ },
+};
diff --git a/src/components/atoms/layout/section/section.stories.tsx b/src/components/atoms/layout/section/section.stories.tsx
deleted file mode 100644
index fdc8217..0000000
--- a/src/components/atoms/layout/section/section.stories.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import type { ComponentMeta, ComponentStory } from '@storybook/react';
-import { Heading } from '../../heading';
-import { Section as SectionComponent } from './section';
-
-/**
- * Section - Storybook Meta
- */
-export default {
- title: 'Atoms/Layout/Section',
- component: SectionComponent,
- argTypes: {
- children: {
- description: 'The section contents.',
- type: {
- name: 'function',
- required: true,
- },
- },
- },
-} as ComponentMeta<typeof SectionComponent>;
-
-const Template: ComponentStory<typeof SectionComponent> = (args) => (
- <SectionComponent {...args} />
-);
-
-/**
- * Section Story
- */
-export const Section = Template.bind({});
-Section.args = {
- children: (
- <>
- <Heading level={2}>A section title</Heading>
- <div>The body</div>
- </>
- ),
-};