Skip to content

Switch

Toggle switch component.

Import

tsx
import { ZSwitch } from "@zurto/ui";

Usage

tsx
<ZSwitch label="Enable notifications" />

Props

PropTypeDefaultDescription
checkedbooleanfalseToggle state
onChange(checked: boolean) => voidChange handler
size'sm' | 'md' | 'lg''md'Switch size
labelstringLabel text

Released under the MIT License.