Cta Banner

Tailwind call to action banner with a heading, supporting text and a primary button that stacks on mobile and sits in a row on wider screens.

src/registry/ui/cta-banner.tsx/r/cta-banner.json

Installation#

bash
npx shadcn@latest add @minidev/cta-banner

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/cta-banner.json

Usage#

tsx
import { CtaBanner } from "@/components/ui/cta-banner"

export function Example() {
  return (
    <CtaBanner title="Start composing" action={{ label: "Open gallery" }} />
  )
}

API reference#

CtaBanner props
PropTypeDefault
title*string-
descriptionstring-
action{ label: string; onClick?: () => void }-
classNamestring-

* required

Dependencies#

npm

React only

Built from

Examples#

All Landing page sections for React and Tailwind

Learn more