-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
2 changed files
with
97 additions
and
16 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
cardigan/stories/components/WobblyEdge/WobblyBottom.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { ReadMeInfo } from '@weco/cardigan/config/decorators'; | ||
import { image as contentImage } from '@weco/cardigan/stories/data/images'; | ||
import PrismicImage from '@weco/common/views/components/PrismicImage/PrismicImage'; | ||
import { WobblyBottom } from '@weco/common/views/components/WobblyEdge'; | ||
import Readme from '@weco/common/views/components/WobblyEdge/README.mdx'; | ||
|
||
const Template = args => ( | ||
<> | ||
<div style={{ maxWidth: '500px' }}> | ||
<WobblyBottom {...args} /> | ||
</div> | ||
<ReadMeInfo Readme={Readme} /> | ||
</> | ||
); | ||
|
||
const meta: Meta<typeof WobblyBottom> = { | ||
title: 'Components/WobblyEdge/WobblyBottom', | ||
component: WobblyBottom, | ||
args: { | ||
backgroundColor: 'warmNeutral.300', | ||
children: <PrismicImage image={contentImage()} quality="low" />, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof WobblyBottom>; | ||
|
||
export const Basic: Story = { | ||
name: 'WobblyBottom', | ||
render: Template, | ||
}; |
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