Camera Capture
An in-browser camera with a viewfinder grid and tap-to-focus, shutter flash, front/back switch and a strip of shots, asking for the camera only on click, with a drawn placeholder, a blocked state and a sample mode.
Preview
Allow camera access to take photos
Sample
0
Sample
3
Install
Pro source requires Pebble Pro. Try the full preview above.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| onCapture | (shot: CameraShot) => void | — | Called for every photo: { id, src? (JPEG data URL), scene?, facing }. |
| defaultState | "placeholder" | "denied" | "sample" | "placeholder" | Starting state; the camera is only requested after a click. |
| defaultShots | CameraShot[] | [] | Photos to start with, newest first. |
| defaultGrid | boolean | true | Show the rule-of-thirds grid. |
| maxShots | number | 12 | Keep at most this many photos. |
| label | string | "Camera" | Accessible name of the camera. |
Pro component
Try the full preview above. Editable source and build guides require Pebble Pro.
