This reservation widget can be easily embedded into any website. Here's how:
- Copy the ReservationWidget component code
- Import and include it in your React application
- Make sure you have the backend API endpoint at
/api/reservations - The widget will handle form validation and submission automatically
Features:
- ✅ Form validation for required fields
- ✅ Email format validation
- ✅ Date picker with next 30 days
- ✅ Time slots from 11:00 AM to 10:00 PM
- ✅ Success and error handling
- ✅ Responsive design that works on mobile and desktop
- ✅ Stores reservations in database