---
title: Call to Action Blocks for Astro
description: Call to action sections with a clear next step and optional supporting evidence.
seo:
    title: "Astro Call to Action blocks: examples and source"
related:
    - /components/cta-button
    - /blocks/hero
sidebar:
    label: "Call to Action"
mode: wide
---

## Centered

Center the invitation and keep its actions together.

```astro
---
import CallToActionBlock from "@/components/blocks/cta/cta-1.astro"
import { agentAvatars } from "@/lib/agent-avatars"
---

<CallToActionBlock
  title="Which task should you automate first?"
  description="Follow a support request through the gnostic AI sample pilot, from arrival in the inbox to assignment."
  buttons={[
    {
      label: "Explore the pilot",
      href: "/blocks/services#process",
    },
    {
      label: "Compare candidate tasks",
      href: "/blocks/faqs#split",
      variant: "secondary",
    },
  ]}
  socialProof={{
    avatars: [
      { image: agentAvatars[0], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[1], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[2], initials: "NC", name: "Nadia Chen" },
      { image: agentAvatars[3], initials: "EB", name: "Ellis Brooks" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/cta-1
```

## Centered actions

Place one or more actions over a full-width image.

```astro
---
import Block from "@/components/blocks/cta/cta-centered-actions.astro"
import lake from "../../../src/assets/images/mountain-beyond-lake-scene.png"
import { getImage } from "astro:assets"

const lakeUrl = (await getImage({ src: lake, width: 1200, format: "webp" })).src
const content = {
  eyebrow: "gnostic AI · Workflow review",
  title: "Pick one handoff to improve",
  image: {
    src: lakeUrl,
    alt: "Mountain ridge beyond a lake",
  },
  buttons: [
    {
      label: "Explore the workflow review",
      href: "/blocks/services#featured-grid",
    },
  ],
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/cta-centered-actions
```

## Illuminated

A soft light highlights the top of the card. Use the note below the links for trial terms or other details that help readers choose an action. The layout adapts [Blank Design’s CTA 01](https://useblank.design/r/cta-01.json).

```astro
---
import IlluminatedCta from "@/components/blocks/cta/cta-illuminated.astro"
---

<IlluminatedCta
  title="Route a ticket before you connect the inbox"
  description="Try a billing question and a setup question in the gnostic AI sample. Compare each assignment with the queue your team would choose."
  actions={[
    { label: "See the routing test", href: "/blocks/faqs#centered" },
    { label: "Explore the pilot", href: "/blocks/services#process" },
  ]}
  note="For the first test, use sample tickets with a known destination."
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/cta-illuminated
```

## Split

Use separate columns for the invitation and its supporting content.

```astro
---
import Cta2Block from "@/components/blocks/cta/cta-2.astro"
import { agentAvatars } from "@/lib/agent-avatars"
---

<Cta2Block
  title="Trace a request from inbox to owner"
  description="Use the gnostic AI inquiry example to describe who receives a request, where they record it, and who takes the next step."
  buttons={[
    {
      label: "Describe the handoff",
      href: "/blocks/contact#split-form",
    },
    {
      label: "See a workflow review",
      href: "/blocks/services#featured-grid",
      variant: "outline",
    },
  ]}
  socialProof={{
    avatars: [
      { image: agentAvatars[4], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[5], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[6], initials: "NC", name: "Nadia Chen" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/cta-2
```

## Spread

Spread the message and actions across the section.

```astro
---
import Cta3Block from "@/components/blocks/cta/cta-3.astro"
import { agentAvatars } from "@/lib/agent-avatars"
---

<Cta3Block
  title="Try the rule on a difficult ticket"
  description="A message about both billing and setup can match two queues. See how the gnostic AI sample handles the exception."
  buttons={[
    {
      label: "See the routing questions",
      href: "/blocks/faqs#centered",
    },
    {
      label: "Explore intake services",
      href: "/blocks/services#visual-service-grid",
      variant: "secondary",
    },
  ]}
  socialProof={{
    avatars: [
      { image: agentAvatars[7], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[8], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[0], initials: "NC", name: "Nadia Chen" },
      { image: agentAvatars[1], initials: "EB", name: "Ellis Brooks" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/cta-3
```

## Background

Place a short invitation on a background surface.

```astro
---
import Cta4Block from "@/components/blocks/cta/cta-4.astro"
import { agentAvatars } from "@/lib/agent-avatars"
---

<Cta4Block
  title="Find the invoices that need a second look"
  description="Use the gnostic AI example to describe what a reviewer checks when an invoice total differs from the purchase order."
  buttons={[
    {
      label: "Explore invoice intake",
      href: "/blocks/faqs#compact",
    },
    {
      label: "View the inquiry form",
      href: "/blocks/contact#sidebar-form",
      variant: "outline",
    },
  ]}
  socialProof={{
    avatars: [
      { image: agentAvatars[2], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[3], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[4], initials: "NC", name: "Nadia Chen" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/cta-4
```

## Checklist

Add a short checklist before the next action.

```astro
---
import Cta5Block from "@/components/blocks/cta/cta-5.astro"
---

<Cta5Block
  title="Bring one workflow to the review"
  description="Use this checklist to prepare a brief for the gnostic AI sample project."
  features={[
    "Bring one request that followed the usual path",
    "Include one request that needed a decision",
    "Name the person who checked the result",
  ]}
  buttons={[
    {
      label: "Open the sample brief",
      href: "/blocks/contact#editorial-contact",
    },
    {
      label: "Read the brief questions",
      href: "/blocks/faqs#divided-question-list",
      variant: "outline",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/cta-5
```

## Reversed

Reverse the content order to fit the surrounding sections.

```astro
---
import Cta6Block from "@/components/blocks/cta/cta-6.astro"
import { agentAvatars } from "@/lib/agent-avatars"
---

<Cta6Block
  title="Check a draft before it reaches a customer"
  description="In the gnostic AI example, a support agent checks each suggested reply against the original question and the product notes."
  buttons={[
    {
      label: "Explore reply review",
      href: "/blocks/faqs#grouped",
    },
    {
      label: "View the project brief",
      href: "/blocks/contact#editorial-contact",
      variant: "outline",
    },
  ]}
  socialProof={{
    avatars: [
      { image: agentAvatars[5], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[6], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[7], initials: "NC", name: "Nadia Chen" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/cta-6
```

## Tinted

Use a tinted surface to separate the invitation from adjacent content.

```astro
---
import Cta7Block from "@/components/blocks/cta/cta-7.astro"
import { agentAvatars } from "@/lib/agent-avatars"
---

<Cta7Block
  title="Give the review queue an owner"
  description="Use the gnostic AI sample to decide who handles an unclear request and how to return it to the queue."
  buttons={[
    {
      label: "Review the exceptions",
      href: "/blocks/faqs#bordered-disclosures",
    },
    {
      label: "See the service examples",
      href: "/blocks/services#icon-panels",
      variant: "secondary",
    },
  ]}
  socialProof={{
    avatars: [
      { image: agentAvatars[8], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[0], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[1], initials: "NC", name: "Nadia Chen" },
      { image: agentAvatars[2], initials: "EB", name: "Ellis Brooks" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/cta-7
```

## Subtle

Keep the message short when the page has already explained the offer.

```astro
---
import Cta8Block from "@/components/blocks/cta/cta-8.astro"
---

<Cta8Block
  title="What would make the pilot worth keeping?"
  description="Use the gnostic AI example to choose one result to measure before the first test run."
  buttons={[
    {
      label: "Choose a baseline",
      href: "/blocks/faqs#stacked-panels",
    },
    {
      label: "See the pilot steps",
      href: "/blocks/services#process",
      variant: "outline",
    },
  ]}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/cta-8
```

## Orbit call to action

Supply your own content. The section uses the selected project preset.

```astro
---
import Block from "@/components/blocks/cta/cta-orbit/cta-orbit.astro"
import type { OrbitCtaContent } from "@/components/blocks/cta/cta-orbit/types"

const content = {
  title: "Plan your first document intake pilot",
  label: "gnostic AI · Document intake",
  buttons: [
    {
      label: "View the sample estimate",
      href: "/blocks/contact#estimate-form",
    },
    {
      label: "Read the intake questions",
      href: "/blocks/faqs#compact",
    },
  ],
} satisfies OrbitCtaContent
---

<Block {content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/cta-orbit
```

<AutoTypeTable path="../../packages/ui/src/components/blocks/cta/cta-orbit/types.ts" name="OrbitCtaProps" />

## Scrolling ticker

```astro
---
import Block from "@/components/blocks/cta/cta-scrolling-ticker/cta-scrolling-ticker.astro"

const content = {
  label: "gnostic AI sample workflows",
  labels: [
    "Route a support request",
    "Extract invoice fields",
    "Review a draft reply",
    "Flag a missed handoff",
  ],
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/cta-scrolling-ticker
```

## Choose a layout

Choose a CTA after the reader has enough information to act. State what happens next, such as viewing plans or sending an enquiry, instead of using a vague action label.

## Pass content from Astro

Pass the title, description, and button links required by the block. Some variants also accept avatars, a rating, and proof text. Use those fields only for accurate evidence and keep the main action clear.

## Responsive layout and images

Check the button row and heading on narrow screens. Optional avatars need real image sources or useful initials; they should not become unexplained decorative people. Theme contrast must remain sufficient on tinted CTA backgrounds.

## Compose the next section

Use [Pricing](/ui/blocks/pricing) before a purchase action and [Contact](/ui/blocks/contact) for an enquiry. A CTA link alone does not implement checkout or a form submission.

## Named slots

These slots are optional. Use the slot name on a direct child of the block.

### `cta-orbit`

| Prop | Type | Default | Description |
| - | - | - | - |
| `mark?` | `Astro content` | - | Places a mark before the label above the heading. |

### `dark-pattern-section` and `pattern-cta`

| Prop | Type | Default | Description |
| - | - | - | - |
| `pattern?` | `Astro content` | - | Places decorative content behind the call to action. |
