Toggle

On/off control for boolean settings. Figma V8.0: Type (default / slim) × Size (sm / md) × Text, with Default, Hover, Focus and Disabled states.

import{ Toggle } from "@pepulux/ui"

Sizes

Small
Medium

Type: Slim

Slim with textThumb fills the track height.

With description

Email notificationsReceive a daily digest.
SMS alertsGet critical alerts via SMS.

Disabled

Feature locked

Props

PropTypeDefaultDescription
checkedboolean—Controlled checked state
defaultCheckedbooleanfalseUncontrolled default state
onChange(checked: boolean) => void—Called when toggle changes
type"default" | "slim""default"Figma Type — Default | Slim (thumb fills the track height)
size"sm" | "md""md"Figma Size — default 36×20 / 44×24, slim 32×16 / 40×20
labelstring—Label next to the toggle
descriptionstring—Supporting text below label
disabledbooleanfalseDisables interaction
Base component → Toggleswww.pepulux.com

Notes and documentation

Space for notes, documentation, and best practices for using these components.

Settings that take effect now

Pair a toggle with a label that states what is enabled. The slim type works well in dense settings lists.