Velocity X Components

Heroes & Sections

Hero — Email Capture

Centred hero with an inline plain-HTML email capture form wired to any form action.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add hero-email-capture

Built for astro.

Full docs for Hero — Email Capture →

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

astro v1.0.0
Hero — Email Capture

Early access

Be first to try Velocity X for your agency

We're onboarding 20 agencies this quarter. Drop your email to get a slot.

No spam. Unsubscribe anytime.

Props

NameTypeRequiredDefaultDescription
eyebrowstringNo
titlestringYes
substringNo
headingLevel1 | 2 | 3 | 4 | 5 | 6Yes
formActionstringNo'#'
formMethod'get' | 'post'No'post'
inputNamestringNo'email'
placeholderstringNo'you@company.com'
buttonLabelstringNo'Get early access'
disclaimerstringNo'No spam. Unsubscribe anytime.'
classNamestringNo''

File this creates

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

text
components/velocity/hero-email-capture/HeroEmailCapture.astro

Using the Hero — Email Capture component

Install it with velocityx add hero-email-capture. 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.