Toggle Switch

Two-factor authenticationRequire a verification code at sign-in.
About this piece

Toggle Switch

Setting row with label, supporting copy, and a sliding switch that turns emerald when on.

Usage

The import and the props worth knowing about, in one place.

import { Form21 } from "@/components/beste/piece/form21";

<Form21
  label="Two-factor authentication"
  description="Require a verification code at sign-in."
  on={true}
/>

More Form pieces

View all Form

Notifications

New bookings
Payment received
Weekly summary

Preferences Toggles

A compact settings card listing labeled rows, each with an accent on/off toggle switch.

sk_••••••••••••••••••••••••••••0000

Copyable Field

Read-only value with an optional mask toggle and a copy button that flips to an emerald Copied state on click.

Mira
Beste

Input Row

Two inputs arranged side by side on a responsive grid for first/last names and paired fields.

Mira & Co.

Inline Edit

Click-to-edit field that toggles between a plain value with a hover pencil and an input flanked by save and cancel buttons.

Create your workspace

Form Autofill

Name, email and company get typed in one after another behind a caret, then the Continue button spins through a loading state and morphs into an emerald check that says you're in.

•••••••••••••••••••••Caps

Password Toggle

Masked password input with a caps-lock alert pill and an eye button that flips visibility.