Festival Section
A festival section over a photo, with the lineup by day in tabs and a tearable ticket.
Installation
npx shadcn@latest add @venusui/event-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/event-ticket.tsxfrom event-ticket@/components/event-01.tsx
Usage
The code behind the preview above.
event-01-demo.tsx
import { Event01 } from "@/components/event-01"
export default function Event01Demo() {
return <Event01 />
}
API reference
No props. The days and sets are an array at the top of the file.
Requirements
- VenusUI
event-ticket. The CLI installs it. - It renders inside a
.darkwrapper so it stays dark over the photo; this relies on shadcn's class-based dark mode. - React 19 and Tailwind CSS v4.
Customization
- Edit
days; mark a set withheadline: trueto highlight it. - Replace the backdrop photo; the dark wash keeps the text readable.
Accessibility
- The days are real tabs: arrow keys move between them and the panel is labelled by the active tab.
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.