Camera UI

CameraButton and CameraMenuItem provide camera action triggers that are automatically hidden on devices without getUserMedia support.

core/camera-ui

Installation

1 · Add registry to components.json

2 · Install component

Examples

Default

Triggers are hidden if camera is unavailable.

API Reference

PropTypeDescription
onClickreq
() => voidCalled when the camera button is pressed (on CameraButton).
disabledreq
booleanDisables the button (on CameraButton).
label
stringLabel text (on CameraMenuItem).