-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Graeme Houston
committed
Aug 19, 2024
1 parent
286331f
commit a0ce8f9
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
15 changes: 9 additions & 6 deletions
15
lib/components/molecules/SectionHeader/SectionHeader.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!", | ||
}; |