sigilUI

Switch Field

Pair an on/off setting with its label and description.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { SwitchField } from "@sigil-ui/components";

Usage

<SwitchField label="Notifications" description="Receive product updates." defaultChecked />

CLI

npx @sigil-ui/cli add switch-field

Token Integration

SwitchField follows the Sigil component rules: styles resolve from var(--s-*), class names are mergeable through className, and the component is exported from @sigil-ui/components.