# Call to action section

A compact paper-and-ink conversion panel with consumer-owned native link and button actions.

Access: pro. Category: Marketing. Kind: section.

## When to use

- Use it when a page needs a compact paper-and-ink conversion panel with consumer-owned native link and button actions.
- Choose it as the cta region when composing a page from independently reusable TidalUI sections.

## Alternatives

- Choose feature-card instead when a feature summary with animated orbital artwork is the actual interface need, rather than call to action section.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Call to action section

```sh
npx shadcn@latest add @tidal-pro/call-to-action-section
```

Stylesheets: `components/ui/tidal.css`, `components/ui/call-to-action-section.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/call-to-action-section.css";
import{TidalCallToActionSection}from"./components/ui/call-to-action-section";
export default()=><div className="tidal-scope"><TidalCallToActionSection actions={[{kind:"link",href:"#",id:"example",label:"Demo"}]} title={"Demo"}/></div>;
```

## Structured props

- `TidalCallToActionSection.actions: ReadonlyArray<TidalCallToAction>`: Required actions value accepted by this exported component.
- `TidalCallToActionSection.title: ReactNode`: Required title value accepted by this exported component.
- `TidalCallToActionSection.actionsLabel?: string | undefined` (default "Call to action"): Optional actions label value accepted by this exported component.
- `TidalCallToActionSection.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalCallToActionSection.detail?: ReactNode`: Optional detail value accepted by this exported component.
- `TidalCallToActionSection.detailLabel?: ReactNode` (default "Context"): Optional detail label value accepted by this exported component.
- `TidalCallToActionSection.emptyActionsMessage?: ReactNode` (default "No actions are available."): Optional empty actions message value accepted by this exported component.
- `TidalCallToActionSection.eyebrow?: ReactNode` (default "Next step"): Optional eyebrow value accepted by this exported component.
- `TidalCallToActionSection.footer?: ReactNode`: Optional footer value accepted by this exported component.
- `TidalCallToActionSection.headingLevel?: "h2" | "h3" | "h4" | undefined` (default "h2"): Optional heading level value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/call-to-action-section.tsx) | [Manifest](https://tidalui.com/examples/call-to-action-section.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
import "./components/ui/tidal.css";

import { useId, useMemo, useRef, useState } from "react";

import { TidalCallToActionSection, type TidalCallToAction } from "./components/ui/call-to-action-section";

import "./components/ui/call-to-action-section.css";



const tidalExampleStyles = ".tidal-scope .cta-demo,\n.tidal-scope .cta-demo * {\n  box-sizing: border-box;\n}\n\n.tidal-scope .cta-demo {\n  width: 100%;\n  max-width: 1160px;\n  min-width: 0;\n  overflow: hidden;\n  border: 1px solid var(--t-border);\n  border-radius: 22px;\n  background: var(--t-surface);\n  color: var(--t-ink);\n  box-shadow: 0 34px 72px -56px #0000008f;\n  container: cta-demo / inline-size;\n}\n\n.tidal-scope .cta-demo-kicker {\n  display: block;\n  color: var(--t-muted);\n  font-size: 11px;\n  font-weight: 690;\n  letter-spacing: 0.11em;\n  line-height: 1.4;\n  text-transform: uppercase;\n  overflow-wrap: anywhere;\n}\n\n.tidal-scope .cta-demo-guide h3,\n.tidal-scope .cta-demo-entries h3 {\n  margin: 4px 0 0;\n  color: var(--t-ink);\n  font-size: 15px;\n  font-weight: 640;\n  letter-spacing: -0.025em;\n  line-height: 1.3;\n  overflow-wrap: anywhere;\n}\n\n.tidal-scope .cta-demo-stage {\n  display: grid;\n  gap: 14px;\n  min-width: 0;\n  padding: 24px;\n  background:\n    linear-gradient(var(--t-border) 1px, transparent 1px),\n    linear-gradient(90deg, var(--t-border) 1px, transparent 1px),\n    var(--t-subtle);\n  background-size: 22px 22px;\n}\n\n.tidal-scope .cta-demo-lower {\n  display: grid;\n  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);\n  gap: 14px;\n  min-width: 0;\n}\n\n.tidal-scope .cta-demo-guide,\n.tidal-scope .cta-demo-entries {\n  min-width: 0;\n  padding: 18px;\n  border: 1px solid var(--t-border);\n  border-radius: 18px;\n  background: var(--t-surface);\n}\n\n.tidal-scope .cta-demo-guide:focus-visible {\n  outline: 2px solid var(--t-accent);\n  outline-offset: 3px;\n}\n\n.tidal-scope .cta-demo-guide ol,\n.tidal-scope .cta-demo-entries ol {\n  margin: 15px 0 0;\n  padding: 0;\n  list-style: none;\n}\n\n.tidal-scope .cta-demo-guide ol {\n  counter-reset: guide;\n}\n\n.tidal-scope .cta-demo-guide li {\n  display: grid;\n  grid-template-columns: 28px minmax(0, 1fr);\n  align-items: center;\n  gap: 9px;\n  min-height: 40px;\n  padding-block: 6px;\n  border-top: 1px solid var(--t-border);\n  color: var(--t-muted);\n  font-size: 11px;\n  line-height: 1.5;\n  counter-increment: guide;\n  overflow-wrap: anywhere;\n}\n\n.tidal-scope .cta-demo-guide li::before {\n  display: grid;\n  width: 28px;\n  height: 28px;\n  place-items: center;\n  border: 1px solid var(--t-border);\n  border-radius: 7px;\n  color: var(--t-ink);\n  content: counter(guide, decimal-leading-zero);\n  font-size: 11px;\n  font-weight: 680;\n}\n\n.tidal-scope .cta-demo-entries-head {\n  display: flex;\n  min-width: 0;\n  align-items: center;\n  justify-content: space-between;\n  gap: 14px;\n}\n\n.tidal-scope .cta-demo-entries-head > div {\n  min-width: 0;\n}\n\n.tidal-scope .cta-demo-entries-head button {\n  min-width: 44px;\n  min-height: 44px;\n  padding: 8px 11px;\n  border: 1px solid var(--t-border);\n  border-radius: 10px;\n  background: var(--t-surface);\n  color: var(--t-ink);\n  font: inherit;\n  font-size: 11px;\n  font-weight: 650;\n  cursor: pointer;\n}\n\n.tidal-scope .cta-demo-entries-head button:disabled {\n  opacity: 0.4;\n  cursor: not-allowed;\n}\n\n.tidal-scope .cta-demo-entries-head button:focus-visible {\n  outline: 2px solid var(--t-accent);\n  outline-offset: 3px;\n}\n\n.tidal-scope .cta-demo-entries li {\n  display: flex;\n  min-width: 0;\n  align-items: center;\n  gap: 10px;\n  min-height: 42px;\n  padding: 7px 0;\n  border-top: 1px solid var(--t-border);\n  animation: cta-demo-entry-in 320ms var(--t-ease-out) both;\n}\n\n.tidal-scope .cta-demo-entries li > span {\n  flex: none;\n  color: var(--t-muted);\n  font-size: 11px;\n  font-variant-numeric: tabular-nums;\n}\n\n.tidal-scope .cta-demo-entries li > strong {\n  min-width: 0;\n  font-size: 11px;\n  font-weight: 620;\n  line-height: 1.4;\n  overflow-wrap: anywhere;\n}\n\n.tidal-scope .cta-demo-entries > p {\n  min-height: 60px;\n  margin: 15px 0 0;\n  padding: 18px;\n  border: 1px dashed var(--t-border);\n  border-radius: 10px;\n  color: var(--t-muted);\n  font-size: 11px;\n  line-height: 1.5;\n  text-align: center;\n}\n\n.tidal-scope .cta-demo-status {\n  min-height: 35px;\n  margin: 0;\n  padding: 9px 12px;\n  border-inline-start: 2px solid var(--t-ink);\n  background: var(--t-surface);\n  color: var(--t-muted);\n  font-size: 11px;\n  line-height: 1.55;\n  overflow-wrap: anywhere;\n}\n\n@keyframes cta-demo-entry-in {\n  from {\n    opacity: 0;\n    transform: translateY(6px);\n  }\n  to {\n    opacity: 1;\n    transform: translateY(0);\n  }\n}\n\n@container cta-demo (max-width: 700px) {\n  .tidal-scope .cta-demo-stage {\n    padding: 16px;\n  }\n\n  .tidal-scope .cta-demo-lower {\n    grid-template-columns: 1fr;\n  }\n}\n\n@container cta-demo (max-width: 390px) {\n  .tidal-scope .cta-demo-stage {\n    padding: 10px;\n  }\n\n  .tidal-scope .cta-demo-guide,\n  .tidal-scope .cta-demo-entries {\n    padding: 14px;\n  }\n\n  .tidal-scope .cta-demo-entries-head button {\n    font-size: 16px;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .tidal-scope .cta-demo-entries li {\n    animation: none;\n  }\n}";

export function CallToActionSectionDemo() {
  const generatedId = useId().replace(/:/g, "");
  const guideId = `cta-demo-${generatedId}-guide`;
  const [briefs, setBriefs] = useState<readonly string[]>([]);
  const [message, setMessage] = useState(
    "Choose the guide link or create a local sample brief.",
  );
  const createRef = useRef<HTMLButtonElement>(null);

  const actions = useMemo<readonly TidalCallToAction[]>(
    () => [
      {
        kind: "button",
        id: "create-brief",
        label: "Create local brief",
        variant: "primary",
        icon: <span>+</span>,
        actionRef: createRef,
        onAction: () => {
          const nextNumber = briefs.length + 1;
          setBriefs((current) => [
            ...current,
            `Sample brief ${String(nextNumber).padStart(2, "0")}`,
          ]);
          setMessage(
            `Sample brief ${String(nextNumber).padStart(2, "0")} added locally.`,
          );
        },
      },
      {
        kind: "link",
        id: "read-guide",
        label: "Read the brief guide",
        href: `#${guideId}`,
        variant: "secondary",
        icon: <span>↗</span>,
        linkProps: {
          onClick: () => setMessage("The in-page brief guide was selected."),
        },
      },
    ],
    [briefs.length, guideId],
  );

  function resetSample() {
    setBriefs([]);
    setMessage("The local brief list was cleared.");
    createRef.current?.focus({ preventScroll: true });
  }

  return (
    <section className="cta-demo" aria-label="Call to action section preview">
      <div className="cta-demo-stage">
        <TidalCallToActionSection
          title="Create your project brief."
          description="Add a sample brief or read the guide."
          detail={`${briefs.length} local ${briefs.length === 1 ? "brief" : "briefs"}`}
          detailLabel="Preview state"
          actions={actions}
          footer="Local preview. Nothing is sent or saved."
        />

        <div className="cta-demo-lower">
          <article id={guideId} className="cta-demo-guide" tabIndex={-1}>
            <span className="cta-demo-kicker">IN-PAGE GUIDE</span>
            <h3>Brief checklist</h3>
            <ol>
              <li>Name the page outcome.</li>
              <li>Choose one primary action.</li>
              <li>List the evidence needed for review.</li>
            </ol>
          </article>

          <section
            className="cta-demo-entries"
            aria-labelledby={`cta-demo-${generatedId}-entries`}
          >
            <div className="cta-demo-entries-head">
              <div>
                <span className="cta-demo-kicker">LOCAL ENTRIES</span>
                <h3 id={`cta-demo-${generatedId}-entries`}>Created briefs</h3>
              </div>
              <button
                type="button"
                onClick={resetSample}
                disabled={!briefs.length}
              >
                Clear
              </button>
            </div>
            {briefs.length ? (
              <ol>
                {briefs.map((brief, index) => (
                  <li key={`${brief}-${index}`}>
                    <span>{String(index + 1).padStart(2, "0")}</span>
                    <strong>{brief}</strong>
                  </li>
                ))}
              </ol>
            ) : (
              <p>No local briefs yet.</p>
            )}
          </section>
        </div>

        <p className="cta-demo-status" role="status" aria-live="polite">
          {message}
        </p>
      </div>
    </section>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <CallToActionSectionDemo />
    </div>
  );
}

```

## Gotchas

- The host application owns data, validation, persistence, navigation, and service side effects described by this API.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"keyboard":["Tab and Shift+Tab follow the component's native focus order."],"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"Verify focus visibility, text alternatives, contrast, and reduced motion in the final composition."}

title and typed actions are required. Actions are discriminated native links with href/linkProps/ref or buttons with onAction/buttonProps/ref, optional icon, primary/secondary variant and disabled state. Native button onClick runs before onAction and preventDefault suppresses the higher callback; button type defaults to button. Disabled links suppress the consumer click and navigation. The section forwards native attributes/ref. Optional description, eyebrow, detail/detailLabel, actionsLabel, emptyActionsMessage, footer and headingLevel are consumer-owned ReactNode or label values. Consumers own destinations, action outcomes, requests, persistence and announcements; the component performs no signup, purchase, storage or network work.
