Toggle

On/off control for boolean settings. Two sizes, optional label and description.

import{ Toggle } from "@pepulux/ui"

Sizes

Small
Medium

With description

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

Disabled

Feature locked

Props

PropTypeDefaultDescription
checkedbooleanControlled checked state
defaultCheckedbooleanfalseUncontrolled default state
onChange(checked: boolean) => voidCalled when toggle changes
size"sm" | "md""md"Toggle track size
labelstringLabel next to the toggle
descriptionstringSupporting text below label
disabledbooleanfalseDisables interaction