Marketing sectionsCtaBandCentered
Searchastronomic.dev# CtaBandCentered
Near the end of a page, for a closing line and the actions, centered on the band.
Static: no JavaScript.
## Usage
```astro
import CtaBandCentered from "@astronomic-dev/ui/components/CtaBandCentered.astro";
```
## Examples
### Closing line
The heading, the text and the actions centered on the band, the text at the reading width.
```astro
---
import CtaBandCentered from "@astronomic-dev/ui/components/CtaBandCentered.astro";
const actions = [
{ label: "Start a project", href: "#start" },
{ label: "See our work", href: "#work" },
];
---
<section class="mx-auto max-w-6xl px-6 py-12">
<CtaBandCentered heading="Let's make something clear." text="One small team, from the first call to the launch and after." actions={actions} />
</section>
```
## Props
### CtaBandCentered
| 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.
CtaBandCentered
FreeNear the end of a page, for a closing line and the actions, centered on the band.
- File
- CtaBandCentered.astro
- Group
- Marketing sections
- Kind
- Static: no JavaScript
- Examples
- 1
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
Closing line
The heading, the text and the actions centered on the band, the text at the reading width.
This preview did not load.
main.astro
examples/ctabandcentered/main.astro
---
import CtaBandCentered from "@astronomic-dev/ui/components/CtaBandCentered.astro";
const actions = [
{ label: "Start a project", href: "#start" },
{ label: "See our work", href: "#work" },
];
---
<section class="mx-auto max-w-6xl px-6 py-12">
<CtaBandCentered heading="Let's make something clear." text="One small team, from the first call to the launch and after." actions={actions} />
</section>Minimal · Light