Skip to content
Viewership Inquire
Astro UI

CTA Band.

The closing call to action on a full-width accent band, centred.

ConversionSection1 dependency Original, MIT

.md

Ready for a proper repair?

Send the pack back and we will have it on the trail again in two days.

Style

Using Claude Code? Give it the agent prompt and skip these steps.

  1. Import the foundation once

    foundation.css holds the tokens every component reads.

    Layout.astro
    ---
    // src/layouts/Layout.astro
    import "../styles/foundation.css";
    ---
  2. Copy CtaBand.astro

    Paste into src/components/viewership/cta-band/

  3. Copy its dependencies

    Each in its own folder, next to this one.

  4. Use it

    Page.astro
    ---
    import CtaBand from "../components/viewership/cta-band/CtaBand.astro";
    ---
    
    <CtaBand />

Props 6

PropTypeDefaultDescription
title string · Headline.
accent string · Closing words of the headline.
body string · Supporting line.
primary { label: string; href: string } · Main action.
secondary { label: string; href: string } · Second action.
as "h2" | "h3" "h2" Heading element.

Source 1 file

Original, MIT.