Skip to Content
Zuri
Blocks

Closing call to action

A panel at the foot of a page with a heading, a line of text and actions.

Live preview
Theme
Preview width

Ready to start learning?

Join the next intake. Places are limited.

Use ClosingCta as the last thing before the footer, to give people one clear next step.

Installation

pnpm dlx shadcn@latest add https://components.abdulqadirmsingi.com/r/closing-cta.json

Usage

import { ClosingCta } from "@/components/ui/closing-cta";

<ClosingCta title="Ready to start?" description="Join the next intake." actions={<a href="/apply">Apply now</a>} />

Accent tone

Live preview
Theme
Preview width

Ready to start learning?

Join the next intake. Places are limited.

On the accent fill, use a button coloured with --accent-foreground (dark in both themes), as here. The default primary button turns light in dark mode, so it can disappear against saffron.

Props

Props
PropTypeDefaultDescription
titleReactNode–The heading. Required.
descriptionReactNode–One line of supporting text.
actionsReactNode–Buttons or links. Put the main action first.
tone"default" | "accent""default"A bordered panel, or one filled with the accent colour.
headingLevel2 | 32The heading level.

Accessibility

  • A region named by its heading.
  • The accent panel uses --accent-foreground for text, which meets AA contrast on saffron in both themes.
  • The description is dimmed to 80%; keep it short, and don't put essential information only there.

Tokens used

--accent, --accent-foreground, --muted, --border, --foreground.

Known limitations

  • One call to action only: it has no second panel or form layout.

On this page