Switch

A toggle control for binary on/off states.

tsx
import { Switch } from '@xdev-asia/x-ui-react';

Examples

Props

  • label - Label text
  • labelPosition - 'left' | 'right'
  • size - 'sm' | 'md' | 'lg'
  • colorScheme - 'primary' | 'secondary' | 'success' | 'warning' | 'error'
  • isDisabled - Disable the switch