Blocks
Closing call to action
A panel at the foot of a page with a heading, a line of text and actions.
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
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
| Prop | Type | Default | Description |
|---|---|---|---|
| title | ReactNode | – | The heading. Required. |
| description | ReactNode | – | One line of supporting text. |
| actions | ReactNode | – | Buttons or links. Put the main action first. |
| tone | "default" | "accent" | "default" | A bordered panel, or one filled with the accent colour. |
| headingLevel | 2 | 3 | 2 | The heading level. |
Accessibility
- A region named by its heading.
- The accent panel uses
--accent-foregroundfor 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.