Caregiver Form Bottom Sheet
Component Detail
User Interface
low complexity
mobile
1
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Modal bottom sheet form for creating and editing caregiver records. Uses a lightweight subset of the contact form fields: name, relationship type (enum), phone, and notes. Reuses AppTextField and validation primitives from the shared widget library.
caregiver-form-bottom-sheet
Responsibilities
- Render controlled form fields for caregiver name, relationship type, phone, and notes
- Validate required fields and phone format before submission
- Submit create or update mutation through CaregiverService
- Dismiss sheet and reflect changes optimistically in the parent screen
Interfaces
CaregiverFormBottomSheet({caregiver?: Caregiver, contactId: String})
onSave(caregiver: CaregiverInput)
onCancel()