Marketing sectionsCtaBand

Open in Create
Search
astronomic.dev

CtaBand

Free

To build your own call-to-action layout: the heading, a line, actions and media on the band, in a fixed order. For a ready layout, use CtaBandSplit, CtaBandCentered, CtaBandImage or CtaBandInline.

File
CtaBand.astro
Group
Marketing sections
Kind
Static: no JavaScript
Examples
2
import CtaBand from "@astronomic-dev/ui/components/CtaBand.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

Slots

The band is a shell: the eyebrow, the heading, the text, the actions and the default slot always show in that order, with the media block after them. The shell sets the band colors, the type, the padding and the gaps; the recipes lay out the blocks. CtaBandSplit is a recipe built on it.

main.astro

A form on the band

A link, fields, a select, a disclosure and a button in the default slot. Every focusable element shows the band-fg ring on the band, an invalid field too (its red edge and the error mark it), and an element out of the tab order (tabindex="-1") gets none.

form.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.