Component packs › Vector › Shield Toggle

Shield Toggle

Turning it on charges a ring, then a hex energy field blooms out and settles into a shimmer.

Shield Toggle is a toggle from Vector, a component pack with 8 components: Sci-fi HUD components that stay readable. Price: $2 for the whole pack.

Built with: charge → bloom, hex field, switch role.

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.

Shield Toggle props

PropTypeDefaultDescription
labelstring
checkedboolean
autoplaybooleanShowcase mode: toggles itself.
onChange(on: boolean) => void

Methods on the ref

Use it in React

import ShieldToggle from './ShieldToggle';

<ShieldToggle />

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

More in Vector

Good for: Admin dashboard UI, Chart components.