Workshop Registration Form
A set of workshop option cards, each wrapping a real radio input and showing a title, time slot, remaining capacity, and price from fixed demo data. Selecting one updates a price summary panel below. Plain, uncontrolled attendee name/email fields follow, with a decorative Register button. Perfect for paid workshops and training session signups.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/workshop-registration-form.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/event/event8.tsx instead.
Usage
The file also exports event8Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Event8, event8Demo } from "@/components/blocks/event/event8"; export default function Page() { return <Event8 {...event8Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "Workshops" | Small label above the heading. |
| heading | string | "Workshop Registration" | Section heading. |
| description | string | "Choose a hands-on workshop and reserve your seat." | Supporting copy under the heading. |
| workshops | WorkshopOption[] | none | Workshop options to choose from. |
| className | string | none | Extra classes for the outer section element. |
Types
interface WorkshopOption { id: string; title: string; time: string; capacityLeft: number; price: number; }
Behavior notes
- The workshop selection is real client-side state (useState<string>, initialized to the first workshop's id) backed by a real native radio input group.
- The price summary panel below the options is derived from the selected workshop id and updates immediately on selection.
- The name/email fields are plain uncontrolled inputs (no state), and the form's submit is prevented client-side but the Register button has no real backend integration.
More Event Blocks
View all →conference-hero-with-image
Conference Hero with Image
Split hero with a featured photo, date badge, location, attendee stat, and dual CTAs.
minimal-event-hero
Minimal Event Hero
Centered, image-free hero with an oversized heading, date/location line, and two CTAs.
event-hero-with-ticket-pricing
Event Hero with Ticket Pricing
Centered hero with an early-bird price, a strikethrough original price, and a deadline note.
event-hero-with-social-proof
Event Hero with Social Proof
Hero with a heading, a 3-stat strip (attendees/speakers/countries), and a trusted-by company row.
personal-schedule-builder
Personal Schedule Builder
Interactive session picker that lets attendees build their own conference agenda.
team-discount-calculator
Team Discount Calculator
Live quantity stepper that applies tiered group discounts to a seat total.