Marketing sectionsCtaBandInline
Searchastronomic.dev# CtaBandInline
Between sections, for a short line and one action in a slim band.
Static: no JavaScript.
## Usage
```astro
import CtaBandInline from "@astronomic-dev/ui/components/CtaBandInline.astro";
```
## Examples
### Between sections
A short heading in the lead role and one action in a slim band, side by side from a 36rem band, the heading over the action below that.
```astro
---
import CtaBandInline from "@astronomic-dev/ui/components/CtaBandInline.astro";
---
<section class="mx-auto max-w-6xl px-6 py-12">
<CtaBandInline heading="Taking new projects this spring." actions={[{ label: "Get in touch", href: "#contact" }]} />
</section>
```
## Props
### CtaBandInline
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `heading` | `string` | None | Required. A short heading, in the lead 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. |
| `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 |
| --- | --- |
| `default` | More content under the actions, such as a short 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.
CtaBandInline
FreeBetween sections, for a short line and one action in a slim band.
- File
- CtaBandInline.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
Between sections
A short heading in the lead role and one action in a slim band, side by side from a 36rem band, the heading over the action below that.
This preview did not load.
main.astro
examples/ctabandinline/main.astro
---
import CtaBandInline from "@astronomic-dev/ui/components/CtaBandInline.astro";
---
<section class="mx-auto max-w-6xl px-6 py-12">
<CtaBandInline heading="Taking new projects this spring." actions={[{ label: "Get in touch", href: "#contact" }]} />
</section>Minimal · Light