Get the kit
Components / Forms & controlsv1.0.0 · updated 2026-09-12

Free · MIT

A real checkbox under the hood, so it works with forms, labels and keyboard focus.

switchcheckbox
Free
Customize
Accent

Install

No dependencies beyond React. Copy the file and import it.

  1. Copy Toggle.tsx from the Code tab into components/brazen/.
  2. Make sure the Brazen tokens are loaded (tokens.css); colours and timing come from them.
  3. Import it and pass the props below.

Props 4

PropTypeDefaultDescription
idstring—Input id.
labelstring—Visible label.
checkedboolean—Controlled value.
onChange(checked: boolean) => void—Change handler.

Features

  • Native checkbox
  • Focus ring
  • Disabled state

Dependencies

  • react@>=19 peer

Works with

  • React 19
  • Next.js 15+
  • TypeScript

Reduced motion

Knob moves instantly.

Related