Skip to main content
Clever Ops

Inline Banner CTA

Mid-article inline CTA, a quiet hairline card with one sentence and an arrow-link, sized to the prose column. The anti-popup, placed where the reading happens.

Preview & code

Loading Inline Banner CTA preview

Installation

pnpm dlx shadcn@latest add @cleverui/cta-inline-banner

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { CtaInlineBanner } from '@/components/ui/cta-inline-banner'
Exampletsx
import { CtaInlineBanner } from '@/components/ui/cta-inline-banner'

export default function CtaInlineBannerDemo() {
  return (
    <div className="mx-auto max-w-prose px-4 py-12 sm:px-6">
      <p className="text-sm leading-relaxed text-muted-foreground sm:text-base">
        Once the token file is the single source of truth, every surface,
        marketing site, app chrome, email templates, pulls the same primary
        and radius. That is the moment a design system stops being a Figma
        library and starts being infrastructure.
      </p>
      <div className="my-8">
        <CtaInlineBanner
          eyebrow="Try it yourself"
          sentence="Everything in this guide ships in the Meridian starter template, tokens, components, and the docs site."
          cta={{ label: 'Open the template', href: '#template' }}
        />
      </div>
      <p className="text-sm leading-relaxed text-muted-foreground sm:text-base">
        The remaining work is naming discipline and a review gate. Skip either
        and the system drifts within a quarter.
      </p>
    </div>
  )
}

API reference

CtaInlineBanner accepts the following props.

PropTypeDefaultDescription
eyebrowstring'Try it yourself'mono micro-label pinned above the sentence
sentence*stringone persuasive sentence
cta*{ label: string; href: string }the single arrow-link, the unit's only interactive element

…plus everything from Omit< React.HTMLAttributes<HTMLElement>, 'onDrag' | 'onDragStart' | 'onDragEnd' | 'onAnimationStart' >: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Inline Banner CTA component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/cta-inline-banner`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Inline Banner CTA require?

Inline Banner CTA uses motion and lucide-react on top of React and Tailwind CSS. You don't need to install them manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Inline Banner CTA to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services