Velocity X Components

Heroes & Sections

Hero — Announcement Pill

Centred hero with a linked pill announcement above the headline.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add hero-announcement-pill

Built for astro.

Full docs for Hero — Announcement Pill →

Needs a licence key — subscribe here, then velocityx loginonce.

astro v1.0.0
Hero — Announcement Pill
Velocity X 9.0 is here — read the changelog

The brand-swappable template, rebuilt

JSON-driven pages, a locked design system, and 175+ components ready to compose.

Props

NameTypeRequiredDefaultDescription
announcementstringYes
announcementHrefstringNo
titlestringYes
substringNo
headingLevel1 | 2 | 3 | 4 | 5 | 6Yes
primaryCta{ label: string; href: string }No
secondaryCta{ label: string; href: string }No
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/hero-announcement-pill/HeroAnnouncementPill.astro

Using the Hero — Announcement Pill component

Install it with velocityx add hero-announcement-pill. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Heroes & Sections.