Boxed Call to Action
A rounded panel with a headline, short reassurance and two actions over a faded grid.
Installation
npx shadcn@latest add @venusui/cta-01Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Files added to your project
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/grid-pattern.tsxfrom grid-pattern@/components/cta-01.tsx
Also adds the shadcn button component if your project doesn't have it yet.
Usage
The code behind the preview above.
cta-01-demo.tsx
import { Cta01 } from "@/components/cta-01"
export default function Cta01Demo() {
return <Cta01 />
}
API reference
No props. Edit the headline, text and buttons in the file.
Requirements
- shadcn
buttonand VenusUIgrid-pattern. The CLI installs both. lucide-react, React 19 and Tailwind CSS v4.
Customization
- Wrap the buttons in links (or use your router’s
Link) to point them at sign-up and sales pages. - Move or remove the highlighted grid cells with the
highlightprop.
Accessibility
- The headline is an
h2. The grid is decorative.
Troubleshooting
- The grid is too strong in light mode.
- Lower the opacity in
className="text-foreground/[0.08]". Unknown registry "@venusui"- Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (
npx shadcn@latest), install by URL, or register it with its address:npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json. No components.json found- Run
npx shadcn@latest initin your project first.