Skip to content

Commit

Permalink
feat(SLB-304): create dedicated stories for form on hero
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasimonato committed Apr 16, 2024
1 parent 6f91915 commit 6c749a2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/ui/src/components/Routes/Page.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,24 @@ export const FullHero = {
},
},
} satisfies StoryObj<ViewPageQuery>;

export const FormHero = {
...Default,
args: {
...Default.args,
page: {
...Default.args.page,
hero: {
headline: 'Page Hero Headline',
lead: 'A longer lead text that even might break into multiple lines.',
image: {
source: image(Landscape, { width: 2000 }),
alt: 'Stock photo landscape hero.',
},
ctaUrl: '/test' as Url,
ctaText: 'Call to action',
formUrl: 'webforms/error/index.html' as Url,
},
},
},
} satisfies StoryObj<ViewPageQuery>;

0 comments on commit 6c749a2

Please sign in to comment.