Skip to content
VenusUI
Get started

Giveaway Section

A spin-to-win giveaway with the rules and an email form to claim the prize.

Preview

Installation

npx shadcn@latest add @venusui/giveaway-01

Run 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/prize-wheel.tsxfrom prize-wheel
  • @/components/giveaway-01.tsx

Also adds the shadcn button, input components if your project doesn't have them yet.

Usage

The code behind the preview above.

giveaway-01-demo.tsx

import { Giveaway01 } from "@/components/giveaway-01"

export default function Giveaway01Demo() {
  return <Giveaway01 />
}

API reference

No props. Edit the segments and rules in the file.

Requirements

  • shadcn button and input, and VenusUI prize-wheel. The CLI installs them.
  • React 19 and Tailwind CSS v4.

Customization

  • Decide prizes on your server and pass the result to the wheel's pick; send the claim form's email to your backend.

Accessibility

  • The prize is announced by the wheel; the email field has a label that names the prize.

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 init in your project first.