diff --git a/astro/src/components/CallToAction.astro b/astro/src/components/CallToAction.astro new file mode 100644 index 00000000..99f7b510 --- /dev/null +++ b/astro/src/components/CallToAction.astro @@ -0,0 +1,103 @@ +--- +/** A navigation callout. Use the supporting slot for optional follow-up content. */ +interface Props { + heading: string; + description: string; + href: string; + linkText: string; + headingLevel?: 2 | 3 | 4 | 5 | 6; +} + +const { heading, description, href, linkText, headingLevel = 2 } = Astro.props; +const Heading = `h${headingLevel}` as "h2" | "h3" | "h4" | "h5" | "h6"; +--- + +
{description}
+ {linkText} + { + Astro.slots.has("supporting") && ( +Have a question we didn’t answer? Email us
+