diff --git a/packages/ui/src/components/Organisms/PageHero.tsx b/packages/ui/src/components/Organisms/PageHero.tsx index 212e97432..a90c9e778 100644 --- a/packages/ui/src/components/Organisms/PageHero.tsx +++ b/packages/ui/src/components/Organisms/PageHero.tsx @@ -1,4 +1,4 @@ -import { Image, PageFragment } from '@custom/schema'; +import { Image, Link, PageFragment } from '@custom/schema'; import React from 'react'; export function PageHero(props: NonNullable) { @@ -45,6 +45,16 @@ export function PageHero(props: NonNullable) { {props.lead ? (

{props.lead}

) : null} + {props.ctaText && props.ctaUrl ? ( + + {props.ctaText} + + ) : null} diff --git a/packages/ui/src/components/Routes/Page.stories.tsx b/packages/ui/src/components/Routes/Page.stories.tsx index f72684dcb..dc50f159d 100644 --- a/packages/ui/src/components/Routes/Page.stories.tsx +++ b/packages/ui/src/components/Routes/Page.stories.tsx @@ -74,6 +74,8 @@ export const FullHero = { source: image(Landscape, { width: 2000 }), alt: 'Stock photo landscape hero.', }, + ctaUrl: '/test' as Url, + ctaText: 'Call to action', }, }, },