Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProAn action sheet for choosing where a photo comes from (camera, library, remove) that opens the matching hidden file input and reports the chosen file. Use this when a profile or post screen on a phone sets a picture and the choice of source matters.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it when a profile or post screen on a phone sets a picture and the choice of source matters.
Do not use it for a drag and drop upload area on desktop or for multiple files.
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 | Default | Description |
|---|---|---|---|
onFile | (file: File) => void | required | Called with the chosen file. |
onRemove | () => void | - | Adds a destructive "Remove photo" action when set. |
accept | string | "image/*" | File types. |
capture attribute so phones open the camera, and "Choose from library" opens the file picker.The pattern ships with a Testing Library test (photo-source-action-sheet.test.tsx) that drives it through roles and the keyboard.