Velocity X Components

Heroes & Sections

Hero — Background Image + Scrim

Full-bleed background image hero with a solid WCAG-AA scrim behind the copy.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add hero-background-scrim

Built for astro.

Full docs for Hero — Background Image + Scrim →

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

astro v1.0.0
Hero — Background Image + Scrim

Now booking Q1

Websites that convert, not just impress

A solid scrim keeps every headline WCAG AA over any photo you drop in.

Props

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

File this creates

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

text
components/velocity/hero-background-scrim/HeroBackgroundScrim.astro

Using the Hero — Background Image + Scrim component

Install it with velocityx add hero-background-scrim. 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.