Velocity X Components

Heroes & Sections

CTA — Centred

Centred call-to-action card with one or two buttons.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add cta-centred

Built for astro.

Full docs for CTA — Centred →

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

astro v1.0.0
CTA — Centred

Let's roast your website or funnel

Book a free 15 minute chat for tips on improving your current site and see how Velocity can help.

Props

NameTypeRequiredDefaultDescription
titlestringYes
substringNo
headingLevel1 | 2 | 3 | 4 | 5 | 6Yes
primaryCta{ label: string; href: string }Yes
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/cta-centred/CtaCentred.astro

Using the CTA — Centred component

Install it with velocityx add cta-centred. 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.