Compact Bar CTA
A single-line, compact call-to-action bar with inline text and a link-style button, thinner than the Banner CTA. Text truncates and stays visually one line on desktop. Perfect for subtle, non-intrusive conversion prompts between content sections.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/compact-bar-cta.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/cta/cta33.tsx instead.
Usage
The file also exports cta33Demo, 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 { Cta33, cta33Demo } from "@/components/blocks/cta/cta33"; export default function Page() { return <Cta33 {...cta33Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | "Version 3.0 is here with a redesigned dashboard." | Inline message text, truncates on small widths. |
| actionLabel | string | "See what's new" | Label for the inline action link. |
| actionHref | string | "#" | Link target for the inline action link. |
| className | string | none | Extra classes for the outer section element. |
Behavior notes
- The text uses `truncate` so it stays a single line on desktop rather than wrapping; the row itself uses `flex-wrap` so it can still stack on very narrow screens.
- The action renders as a link-styled button (`variant="link"`) via `render={<Link/>}`, pointing at `#` by default and doing nothing beyond navigation.
More CTA Blocks
View all →centered-newsletter-cta
Centered Newsletter CTA
Minimal centered call-to-action with heading, description, and action buttons.
split-layout-newsletter-cta
Split Layout Newsletter CTA
Two-column call-to-action with a decorative image on one side and a feature list plus subscribe form on the other.
newsletter-social-proof-cta
Newsletter CTA with Social Proof
Newsletter call-to-action with an avatar stack, subscriber count, and a testimonial quote.
banner-cta
Banner CTA
Horizontal banner call-to-action with heading and action buttons side by side.
stats-cta
Stats CTA
Call-to-action section with impressive statistics and trust indicators above action buttons.
multi-card-cta
Multi-Card CTA
Three action cards side by side, each offering a different path to conversion.