Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA tabbed chooser for a profile photo: Upload a file (with drag and drop and validation) or Take a photo (the camera starts only on that tab), with the same Use this photo confirmation and a shared preview. Use this when both ways should be equally easy.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
Onboarding or profile pages let people give a photo either from their device or by taking one.
Do not use it when: On devices where the camera is not wanted, show only the upload.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Description |
|---|---|---|
onSave | (photo: File) => void | Promise<void> | Called with the chosen or captured photo. |
The pattern ships with a Testing Library test (profile-photo-camera-or-file.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.