Camera UI
CameraButton and CameraMenuItem provide camera action triggers that are automatically hidden on devices without getUserMedia support.
core/camera-uiInstallation
1 · Add registry to components.json
2 · Install component
Examples
Default
Triggers are hidden if camera is unavailable.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
onClickreq | () => void | — | Called when the camera button is pressed (on CameraButton). |
disabledreq | boolean | — | Disables the button (on CameraButton). |
label | string | — | Label text (on CameraMenuItem). |