Staaarter

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.

By Staaarter Team
Event
Docs
Live preview

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.json

Prefer 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

PropTypeDefaultDescription
eyebrowstring"Workshops"Small label above the heading.
headingstring"Workshop Registration"Section heading.
descriptionstring"Choose a hands-on workshop and reserve your seat."Supporting copy under the heading.
workshopsWorkshopOption[]noneWorkshop options to choose from.
classNamestringnoneExtra 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.