What problem does it solve?
This Skill solves the friction of adding reliable file uploads—drag/drop UI, upload progress, presigned upload flow, and seamless form submission—without duplicating logic across screens.
Core Features & Use Cases
- Dropzone UI primitives: Provides composable, headless compound components in @loyalty/ui for a polished drag/drop experience and file-list rendering.
useFileUpload upload state machine: Manages queued → uploading → success/error states with XHR progress, abort/remove support, and presigned URL create/flow for upload and download URL resolution.
- React Hook Form integration: Offers
<RHFFileUpload> to bind uploaded file URLs into form fields via a Controller, keeping submit values consistent as string[].
Quick Start
Use <RHFFileUpload> in apps/web to bind an avatar upload field to React Hook Form, so the form submit receives uploaded file URLs automatically.