Marketing sectionsCtaBandSplit
Searchastronomic.dev# CtaBandSplit
Near the end of a page, to ask the reader to get in touch: the heading and a line at the start, the actions at the end.
Static: no JavaScript.
## Usage
```astro
import CtaBandSplit from "@astronomic-dev/ui/components/CtaBandSplit.astro";
```
## Examples
### Get in touch
The heading and the text at the start, the actions at the end from a 48rem band, stacked below that. The email link sits in the default slot.
```astro
---
import CtaBandSplit from "@astronomic-dev/ui/components/CtaBandSplit.astro";
const actions = [
{ label: "Book an intro call", href: "#call" },
{ label: "See our rates", href: "#rates" },
];
---
<section class="mx-auto max-w-6xl px-6 py-12">
<CtaBandSplit heading="Have a project in mind?" text="Tell us what you need and when. We answer within two business days." actions={actions}>
<a href="mailto:hello@haldenstudio.example">hello@haldenstudio.example</a>
</CtaBandSplit>
</section>
```
### Three actions
A primary, a secondary and a ghost action: each is inverted on the band, so it reads on the band color and on the accent.
```astro
---
import CtaBandSplit from "@astronomic-dev/ui/components/CtaBandSplit.astro";
const actions = [
{ label: "Book an intro call", href: "#call" },
{ label: "See our rates", href: "#rates" },
{ label: "Read the FAQ", href: "#faq", variant: "ghost" as const },
];
---
<section class="mx-auto max-w-6xl px-6 py-12">
<CtaBandSplit heading="Have a project in mind?" text="Tell us what you need and when. We answer within two business days." actions={actions}>
<a href="mailto:hello@haldenstudio.example">hello@haldenstudio.example</a>
</CtaBandSplit>
</section>
```
## Props
### CtaBandSplit
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `heading` | `string` | None | Required. The heading, in the title role in display type. |
| `emphasis` | `boolean` | `false` | Turn one *phrase* in the heading into <em>: exactly two asterisks around text with no space inside, as in "Built for *the long run*". Any other asterisks show as typed. Off by default, so the heading shows as typed. How the <em> looks is the theme's. |
| `mark` | `string` | None | A short mark after the heading, such as "(12)" or "©2026", in small muted type. It sits beside the heading, outside it, so the heading's name stays plain. Shown only with a heading. |
| `markLabel` | `string` | None | What the mark says to a screen reader, such as "12 projects": the mark is then hidden from screen readers and this is read in its place. Without it, the mark is read as written. |
| `text` | `string` | None | One or two sentences under the heading, in the lead role. |
| `actions` | `Omit<NavAction, "size">[]` | `[]` | Buttons on the band (Button tone="cta"). NavAction is { label, href, variant? }. The first is `primary` and the rest `secondary`, unless you set variant. |
| `headingTag` | `"h2" \| "h3" \| "h4"` | `"h2"` | The heading element. |
| `class` | `string` | None | More classes, merged with cn(), so yours win on conflicts. A border you add takes the band's edge color. |
| Slot | Description |
| --- | --- |
| `eyebrow` | A short line above the heading, such as a Badge. |
| `default` | More content under the actions, such as the studio's email link. |
Any other attribute goes on the <section>.
## Accessibility
- Renders a <section> named by its heading, so it is a region landmark.
- The focus ring on the band is band-fg, so it shows on the band in every preset.
- Actions are links that look like buttons. Give each a label that says where it goes.
CtaBandSplit
FreeNear the end of a page, to ask the reader to get in touch: the heading and a line at the start, the actions at the end.
- File
- CtaBandSplit.astro
- Group
- Marketing sections
- Kind
- Static: no JavaScript
- Examples
- 2
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
Get in touch
The heading and the text at the start, the actions at the end from a 48rem band, stacked below that. The email link sits in the default slot.
This preview did not load.
main.astro
examples/ctabandsplit/main.astro
---
import CtaBandSplit from "@astronomic-dev/ui/components/CtaBandSplit.astro";
const actions = [
{ label: "Book an intro call", href: "#call" },
{ label: "See our rates", href: "#rates" },
];
---
<section class="mx-auto max-w-6xl px-6 py-12">
<CtaBandSplit heading="Have a project in mind?" text="Tell us what you need and when. We answer within two business days." actions={actions}>
<a href="mailto:hello@haldenstudio.example">hello@haldenstudio.example</a>
</CtaBandSplit>
</section>Three actions
A primary, a secondary and a ghost action: each is inverted on the band, so it reads on the band color and on the accent.
This preview did not load.
three-actions.astro
examples/ctabandsplit/three-actions.astro
---
import CtaBandSplit from "@astronomic-dev/ui/components/CtaBandSplit.astro";
const actions = [
{ label: "Book an intro call", href: "#call" },
{ label: "See our rates", href: "#rates" },
{ label: "Read the FAQ", href: "#faq", variant: "ghost" as const },
];
---
<section class="mx-auto max-w-6xl px-6 py-12">
<CtaBandSplit heading="Have a project in mind?" text="Tell us what you need and when. We answer within two business days." actions={actions}>
<a href="mailto:hello@haldenstudio.example">hello@haldenstudio.example</a>
</CtaBandSplit>
</section>Minimal · Light