Skip to content

Commit

Permalink
Add test for Section header
Browse files Browse the repository at this point in the history
  • Loading branch information
Graeme Houston committed Aug 19, 2024
1 parent 286331f commit a0ce8f9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/components/molecules/SectionHeader/SectionHeader.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import React from 'react';
import { StoryFn, Meta } from '@storybook/react';
import SectionHeader from './index';
import { Meta, StoryFn } from "@storybook/react";
import React from "react";
import SectionHeader from "./index";

export default {
title: 'components/molecules/SectionHeader',
title: "components/molecules/SectionHeader",
component: SectionHeader,
} as Meta;

const Template: StoryFn = (args) => <SectionHeader {...args} />;
const Template: StoryFn<typeof SectionHeader> = (args) => (
<SectionHeader {...args} />
);

export const Default = Template.bind({});
Default.args = {
// Add default props here
title: "Exclusive Offers",
description: "Check out our latest promotions!",
};

0 comments on commit a0ce8f9

Please sign in to comment.