Disable camera
"active"The camera is active.
Media controls
CameraStateIconSwitches between active and disabled camera states.
The camera is active.
"active"The camera is active.
"disabled"The camera is disabled.
Implementation
The component stays presentational. Your application remains in control of async work and business logic. The state prop is a TypeScript string literal union — pass an invalid state and you'll get a type error at build time.
import { CameraStateIcon } from "@stateglyph/react";
<CameraStateIcon state="active" decorative />