Hero
A Hero component.
announcement
Section titled “announcement”type: object
An announcement banner.
Properties:
title(string, required): The announcement textctaTitle(string, required): The call-to-action button texthref(string, required): The URL the announcement links to
title (required)
Section titled “title (required)”type: object
The main hero title.
Properties:
firstPart(string, required): The first part of the titlehighlightedPart(string): The middle part that will be visually highlightedsecondPart(string): An optional final part of the title
description (required)
Section titled “description (required)”type: string
The hero description or subtitle text.
primaryCta (required)
Section titled “primaryCta (required)”type: object
The primary call-to-action button.
Properties:
title(string): The button texthref(string): The URL the button links to
secondaryCta (required)
Section titled “secondaryCta (required)”type: object
The secondary call-to-action button.
Properties:
title(string): The button texthref(string): The URL the button links to
Example
Section titled “Example”import { Hero } from "@dlcastillop/starlight-marketing-components";
<Hero announcement={{ title: "New tool!", ctaTitle: "Starlight Page Actions", href: "https://starlight-page-actions.dlcastillop.com", }} title={{ fistPart: "Components that make", highlightedPart: "your docs shine", }} description="A collection of marketing components designed specifically for Starlight." primaryCta={{ title: "Get Started", href: "docs/getting-started", }} secondaryCta={{ title: "More developer tools", href: "https://dlcastillop.lemonsqueezy.com", }}/>