Component packs › Natter › Camera Toggle

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.

Camera Toggle props

PropTypeDefaultDescription
onboolean
onChange(on: boolean) => void
autoplaynumber | falseShowcase mode: toggles every N ms while visible.

Methods on the ref

Use it in React

import CameraToggle from './CameraToggle';

<CameraToggle />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Natter

Good for: Collaboration and calls.