Staaarter

Closing CTA Panel

A closing call-to-action on a soft `bg-muted` panel: an eyebrow pill, light heading, paragraph, and two accent buttons sit beside an image tile. A small floating card overlaps the image's corner, mocking a 'Today's agenda' list with a few short line items.

By Staaarter Team
CTA
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, media-slot dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/closing-cta-panel.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/cta/cta73.tsx instead.

Usage

The file also exports cta73Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Cta73, cta73Demo } from "@/components/blocks/cta/cta73";

export default function Page() {
  return <Cta73 {...cta73Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstring"Wrap up the quarter"Small pill label above the heading.
headingstring"Close out the plan before the next sprint starts"Light-weight headline.
descriptionstringnoneShort supporting paragraph.
primaryLabelstring"Book the session"Label for the primary button.
primaryHrefstring"#"Link target for the primary button.
secondaryLabelstring"See sample agenda"Label for the secondary (outline) button.
secondaryHrefstring"#"Link target for the secondary button.
imageMediaSlotImagenoneImage shown in the tile beside the text column.
agendaTitlestring"Today's agenda"Title of the floating agenda micro-card.
agendaItemsstring[]noneUp to 3 short line items shown in the floating agenda card.
classNamestringnoneExtra classes for the outer section element.

Behavior notes

  • The floating agenda card is a static, absolutely-positioned mock (fixed demo copy), not a real calendar/agenda integration.
  • Both buttons are inert links (`render={<Link/>}`); no form submission or navigation logic is wired up.