Skip to content
Pebble Pro is here at $49 one timeSee what’s included ↗
Pebble
ComponentsDocsMCPPricing
⌕ Find a component↗Log in
All components 673

Categories

Core inputs & forms46Buttons & actions33Navigation36Overlays & feedback49Data display33Charts & data viz40Cards & layout43Marketing blocks38App shells & pages37AI interfaces40Text & typography effects33Backgrounds & visual effects38Motion & transitions32Numbers & counters32Media34E-commerce333D & interactive36Themed sets40
Start with the essentials.Installation guide ↗Connect your agent ↗
← All componentsMedia

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
  • Photos you take appear here
Sample
3

Install

Pro source requires Pebble Pro. Try the full preview above.

Props

PropTypeDefaultDescription
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.
defaultShotsCameraShot[][]Photos to start with, newest first.
defaultGridbooleantrueShow the rule-of-thirds grid.
maxShotsnumber12Keep at most this many photos.
labelstring"Camera"Accessible name of the camera.

Pro component

Try the full preview above. Editable source and build guides require Pebble Pro.

Buy Pebble Pro — $49How source access works ↗
Pebble

Small details.
Better interfaces.

React components to explore, make your own, and build on.

Library

  • Components
  • Installation
  • Pricing

Resources

  • For agents
  • About
  • Support

Legal

  • License
  • Terms
  • Privacy
  • Final sale

Built by Pebble

A product of Praxys Solutions LLC ↗

Pebble Pro is live

$49 one time, lifetime updates ↗