Beam Rain Call to Action
A closing call to action on a dark panel where beams fall and burst into sparks.
Installation
npx shadcn@latest add @venusui/cta-05Run 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/beam-rain.tsxfrom beam-rain@/components/cta-05.tsx
Also adds the shadcn button component if your project doesn't have it yet.
Usage
The code behind the preview above.
cta-05-demo.tsx
import { Cta05 } from "@/components/cta-05"
export default function Cta05Demo() {
return <Cta05 />
}
API reference
No props. Edit the content directly in the file.
Requirements
- shadcn
buttonand VenusUIbeam-rain. The CLI installs them with their CSS. - It renders inside a
.darkwrapper so it stays dark in both themes; this relies on shadcn’s class-based dark mode (the default).
Customization
- Change the beam colors with
BeamRain’scolors.
Accessibility
- The beams are decorative and absent with reduced motion.
Troubleshooting
- Something looks different from the preview.
- Blocks use your project’s theme and your own shadcn components, so they follow your styles.
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.