CTA

A band that asks for the one action a page is for: a title, a line of text and its calls to action, here centred, with one action.

Your headline goes here A short note goes here.

A short line about what the product does goes here.

import { Cta } from "@produkto/ui/Cta";
import type { BlockAction } from "@produkto/ui/Section";

const actions: BlockAction[] = [{ label: "Primary action", link: "#" }];

const Example = () => (
  <Cta
    actions={actions}
    align="center"
    description="A short line about what the product does goes here."
    tagline="A short note goes here."
    title="Your headline goes here"
  />
);

export default Example;

Usage

import { Cta } from "@produkto/ui/Cta";
import type { BlockAction } from "@produkto/ui/Section";
const actions: BlockAction[] = [
  { label: "Primary action", link: "#" },
  { label: "Secondary action", link: "#" },
];

<Cta
  title="Your headline goes here"
  description="A short line about what the product does goes here."
  actions={actions}
/>

Examples

Over a photo

cover sets the words and buttons over the backdrop photo under a dark scrim, in the dark theme so they stay clear on any photo.

Eyebrow

Your headline goes here

A short line about what the product does goes here.

import { Cta } from "@produkto/ui/Cta";
import { Image } from "@produkto/ui/Image";
import type { BlockAction } from "@produkto/ui/Section";

const actions: BlockAction[] = [
  { label: "Primary action", link: "#" },
  { label: "Secondary action", link: "#" },
];

const Example = () => (
  <Cta
    actions={actions}
    cover
    backdrop={<Image alt="" src="https://picsum.photos/id/1067/1600/900" />}
    description="A short line about what the product does goes here."
    eyebrow="Eyebrow"
    title="Your headline goes here"
  />
);

export default Example;

On a soft band

align="center" stacks the title, the text and the actions down the middle.

Your headline goes here

A short line about what the product does goes here.

import { Cta } from "@produkto/ui/Cta";
import type { BlockAction } from "@produkto/ui/Section";

const actions: BlockAction[] = [
  { label: "Primary action", link: "#" },
  { label: "Secondary action", link: "#section" },
];

const Example = () => (
  <Cta
    actions={actions}
    align="center"
    description="A short line about what the product does goes here."
    title="Your headline goes here"
  />
);

export default Example;

On a card

appearance="solid" holds the call to action in a rounded panel on the page's own surface.

Your headline goes here

A short line about what the product does goes here.

import { Cta } from "@produkto/ui/Cta";
import type { BlockAction } from "@produkto/ui/Section";

const actions: BlockAction[] = [
  { label: "Primary action", link: "#" },
  { label: "Secondary action", link: "#section" },
];

const Example = () => (
  <Cta
    actions={actions}
    appearance="solid"
    description="A short line about what the product does goes here."
    title="Your headline goes here"
  />
);

export default Example;

Card with a photo

appearance="solid" with media sets the words beside a picture inside one rounded panel.

Eyebrow

Your headline goes here

A short line about what the product does goes here.

import { Cta } from "@produkto/ui/Cta";
import { Image01Icon } from "@hugeicons/core-free-icons";
import { Icon } from "@produkto/ui/Icon";
import type { BlockAction } from "@produkto/ui/Section";

const actions: BlockAction[] = [
  { label: "Primary action", link: "#" },
  { label: "Secondary action", link: "#" },
];

const Example = () => (
  <Cta
    actions={actions}
    appearance="solid"
    description="A short line about what the product does goes here."
    eyebrow="Eyebrow"
    media={
      <div className="flex aspect-[4/3] items-center justify-center rounded-2xl border border-border bg-card text-muted-foreground">
        <Icon icon={Image01Icon} size={32} />
      </div>
    }
    title="Your headline goes here"
  />
);

export default Example;

Over a wide photo

align="center" with media sets the words and buttons centred over one wide picture under them.

Eyebrow

Your headline goes here

A short line about what the product does goes here.

import { Cta } from "@produkto/ui/Cta";
import { Image01Icon } from "@hugeicons/core-free-icons";
import { Icon } from "@produkto/ui/Icon";
import type { BlockAction } from "@produkto/ui/Section";

const actions: BlockAction[] = [
  { label: "Primary action", link: "#" },
  { label: "Secondary action", link: "#" },
];

const Example = () => (
  <Cta
    actions={actions}
    align="center"
    description="A short line about what the product does goes here."
    eyebrow="Eyebrow"
    media={
      <div className="flex aspect-[21/9] items-center justify-center rounded-2xl border border-border bg-card text-muted-foreground">
        <Icon icon={Image01Icon} size={32} />
      </div>
    }
    title="Your headline goes here"
  />
);

export default Example;

Deep row

theme="dark" sets the words left and the buttons right on the deep band.

Your headline goes here

A short line about what the product does goes here.

import { Cta } from "@produkto/ui/Cta";
import type { BlockAction } from "@produkto/ui/Section";

const actions: BlockAction[] = [
  { label: "Primary action", link: "#" },
  { label: "Secondary action", link: "#" },
];

const Example = () => (
  <Cta
    actions={actions}
    appearance="transparent"
    description="A short line about what the product does goes here."
    theme="dark"
    title="Your headline goes here"
  />
);

export default Example;

Two calls

calls sets two asks side by side, the first on a soft card and the next on an outlined one with an outline button.

Eyebrow

Title 1

A short line about it goes here.

Eyebrow

Title 2

A short line about it goes here.

import { Cta, type CtaCall } from "@produkto/ui/Cta";

const calls: CtaCall[] = [1, 2].map((n) => ({
  eyebrow: "Eyebrow",
  title: `Title ${n}`,
  description: "A short line about it goes here.",
  actions: [{ label: "Primary action", link: "#" }],
}));

const Example = () => <Cta calls={calls} />;

export default Example;

With media

media sets a picture beside the text and the actions on large screens, and under them on small ones.

Your headline goes here

A short line about what the product does goes here.

import { Cta } from "@produkto/ui/Cta";
import { Image01Icon } from "@hugeicons/core-free-icons";
import { Icon } from "@produkto/ui/Icon";
import type { BlockAction } from "@produkto/ui/Section";

const actions: BlockAction[] = [
  { label: "Primary action", link: "#" },
  { label: "Secondary action", link: "#section" },
];

const Example = () => (
  <Cta
    actions={actions}
    description="A short line about what the product does goes here."
    media={
      <div className="flex aspect-video items-center justify-center rounded-2xl border border-border bg-card text-muted-foreground">
        <Icon icon={Image01Icon} size={32} />
      </div>
    }
    title="Your headline goes here"
  />
);

export default Example;

API Reference

Cta

CtaProps · blocks/Cta/Cta.types.ts
PropTypeDefault
idstring-
eyebrowstring-
titleReactNode-
taglineReactNode-
descriptionReactNode-
actionsBlockAction[]-
callsCtaCall[]-
linksBlockLink[]-
mediaReactNode-
backdropReactNode-
coverbooleanfalse
appearanceCtaAppearance"solid" | "soft" | "transparent""soft"
alignSectionAlign"start" | "center" | "end""start"
themeThemeMode"light" | "dark"-
classNamestring-

BlockAction

used by actions
PropTypeDefault
appearanceButtonAppearance"solid" | "soft" | "outline" | "transparent"-
toneButtonTone"neutral" | "accent" | "destructive" | "success" | "warning" | "info"-
iconReactNode-
iconOnlyboolean-
borderRadiusBlockActionBorderRadius"none" | "xs" | "sm" | "base" | "lg" | "xl" | "full"-
labelrequiredstring-
linkrequiredstring-

CtaCall

used by calls
PropTypeDefault
eyebrowstring-
titlerequiredReactNode-
descriptionReactNode-
actionsBlockAction[]-

BlockLink

used by links
PropTypeDefault
labelrequiredstring-
linkrequiredstring-