Install Command CTA
A developer call to action with a pitch and a copyable command.
Installation
npx shadcn@latest add @venusui/cta-03Run 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/copy-button.tsxfrom copy-button@/components/cta-03.tsx
Usage
The code behind the preview above.
cta-03-demo.tsx
import { Cta03 } from "@/components/cta-03"
export default function Cta03Demo() {
return <Cta03 />
}
API reference
No props. Set command at the top of the file.
Requirements
- VenusUI
copy-button(the CLI installs it), React 19 and Tailwind CSS v4. - HTTPS (or localhost) for copying to work.
Customization
- Change
commandto your real getting-started command. - Long commands scroll sideways inside the box.
Accessibility
- The
$prompt is hidden from screen readers and from text selection. - The copy result is announced (“Copied”).
Troubleshooting
- Copy doesn’t work.
- Browsers only allow clipboard access on HTTPS and localhost.
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.