AppointmentScheduler is a full scheduling widget that lets users browse available slots, create new appointments, and manage existing ones — all from within your React application. It sends GET requests to list upcoming appointments and POST requests to create new ones, both routed through a backend proxy that you control.
Props
URL of your backend proxy endpoint. The widget sends GET requests to list appointments and POST requests to create new ones. Both methods must be supported by this endpoint.
CSS class name applied to the widget’s root element for layout and theming control.
Callback invoked when a request to your proxy fails. Use this to display error notifications or log issues to your monitoring service.
Proxy setup
Your proxy endpoint needs to handle both GET (list/search) and POST (create) requests. The example below shows a Next.js App Router route:Usage
What it supports
- Viewing upcoming appointments sorted by date
- Creating new appointments with type, date, time, and participant selection
- Managing existing appointments (reschedule, cancel)
- Status display (booked, pending, cancelled, fulfilled)
The widget uses the
dateFrom parameter to show only upcoming appointments by default. Your proxy can apply additional filters — for example, scoping appointments to a specific patient or practitioner — before returning results.