Component packs › Setpoint › Permission Toggles

Permission Toggles

Switch a permission and the app on the phone changes with it: the location arrow and camera or microphone privacy dots appear and each card shows what it can do.

Permission Toggles is a settings from Setpoint, a component pack with 6 settings panels: Settings panels that show the effect of every change as you make it. Price: $2 for the whole pack.

Built with: status bar indicators, precise or approximate, app reacts.

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.

Permission Toggles props

PropTypeDefaultDescription
valuePartial<PermissionToggleValue>
appNamestring
onChange(value: PermissionToggleValue) => void
autoplaynumber | falseShowcase mode: flips a permission every N ms while visible.

Methods on the ref

Use it in React

import PermissionToggles from './PermissionToggles';

<PermissionToggles />

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

More in Setpoint

Good for: Settings pages.