Media controls

Camera

CameraStateIcon

Switches between active and disabled camera states.

States

2 total

Disable camera

The camera is active.

Disable camera

"active"

The camera is active.

Enable camera

"disabled"

The camera is disabled.

Implementation

Pass your current state.

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.

Source
Lucide
License
ISC
States
active · disabled
example.tsx
import { CameraStateIcon } from "@stateglyph/react";
<CameraStateIcon state="active" decorative />