-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: hxtree <[email protected]>
- Loading branch information
Showing
4 changed files
with
79 additions
and
18 deletions.
There are no files selected for viewing
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
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
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
24 changes: 20 additions & 4 deletions
24
clients/design-system/stories/components/molecules/BlurbPair.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,17 +1,33 @@ | ||
import React from 'react'; | ||
import { Meta } from '@storybook/react'; | ||
import { BlurbPair, BlurbPairProps, faGithub, faAddressCard } from '../../../src/main'; | ||
import { BlurbPair, BlurbPairProps, faGithub, faAddressCard, BlurbIconColors } from '../../../src/main'; | ||
|
||
export default { | ||
title: 'Molecules/BlurbPair', | ||
component: BlurbPair, | ||
argTypes: { | ||
variant: { | ||
options: Object.values(BlurbIconColors), | ||
mapping: Object.values(BlurbIconColors), | ||
control: { | ||
type: 'select', | ||
labels: Object.keys(BlurbIconColors), | ||
}, | ||
}, | ||
}, | ||
} as Meta<typeof BlurbPair>; | ||
|
||
export const Default = args => <BlurbPair {...args}/>; | ||
|
||
Default.args = { | ||
iconRight: faGithub, | ||
textRight: 'This is a blurb about stuff and things.', | ||
iconLeft: faAddressCard, | ||
textLeft: 'This is a blurb about stuff and things.', | ||
iconColorLeft: BlurbIconColors.ORANGE, | ||
textLeft: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lectus sit amet est placerat in. At tempor commodo ullamcorper a lacus vestibulum.', | ||
linkLeft: 'https://www.google.com', | ||
ctaLeft: 'Learn More', | ||
iconRight: faGithub, | ||
iconColorRight: BlurbIconColors.BLUE, | ||
textRight: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vehicula ipsum a arcu cursus vitae congue mauris.', | ||
linkRight: 'https://www.google.com', | ||
ctaRight: 'Get There Sooner', | ||
} as BlurbPairProps; |