Component packs › Natter › Camera Toggle
The laptop webcam is drawn as the real part, and turning the camera off slides a ridged privacy shutter across the glass lens as the light goes out.
Camera Toggle is a toggle from Natter, a component pack with 6 call controls: Video call controls that move with the voices in the call. Price: $2 for the whole pack.
Built with: drawn webcam, sliding shutter, activity light.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
on | boolean | ||
onChange | (on: boolean) => void | ||
autoplay | number | false | Showcase mode: toggles every N ms while visible. |
readonly on: booleansetOn(v: boolean, silent?: boolean): voiddestroy(): voidimport CameraToggle from './CameraToggle';
<CameraToggle />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Collaboration and calls.