VISUALLIdesign system

Inputs

Switch

On/off switch row with label and optional description, for settings.

Playground

Change the props, switch theme in the header, try Tablet and Phone widths, then copy the code.

Playground

Examples

Live previewOpen ↗

Props

export interface SwitchProps {
  label: string;
  description?: string;
  checked: boolean;
  onChange?: (checked: boolean) => void;
  disabled?: boolean
}

Use

import { Switch } from '@visualli/design-system/components';

Source: components/src/ · Guidelines: components/catalog/Switch/README.md