Search documentation

Search guides, examples, and component APIs.

Quick links
↑↓ NavigateEnter OpenEsc Close
Get started

Blocks / Forms & inputs

Event scheduler

A workshop scheduler with an inline month calendar, start and end times, a registration deadline, and an optional repeat date.

bunx --bun @getweini/cli@latest add alert button calendar card date-picker date-time-picker input time-picker
Customize
  • The block is controlled: pass the saved values in `plan`, set `loading` while your request runs, and `error` with a message when it fails. It emits `submit` with the validated plan and `cancel`.
  • It pairs Calendar for the day, two TimePickers for the hours, a DateTimePicker for the registration deadline, and a DatePicker for the optional last session. Values are plain `YYYY-MM-DD`, `HH:mm`, and `YYYY-MM-DDTHH:mm` strings, so they serialize without a date library.
  • Pass `referenceDate` (today, as `YYYY-MM-DD`) from your server so the calendar renders the same month during SSR and hydration. Past days are disabled through `min`.
  • Rules run after the first submit: an end time before the start and a deadline after the event both mark their field invalid and link the message with `aria-describedby`.
  • Every visible string lives in the `copy` prop, including the picker message objects. Set `locale` to format the summary line and the pickers.