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 11, 2024
1 parent db65dc0 commit cb28136
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 cb28136

Please sign in to comment.