Switch

A control that allows the user to toggle between checked and not checked.

Preview

Usage

import { Switch } from "@sunsatosolutions/ui"

export function SwitchDemo() {
  return (
    <div className="flex items-center space-x-2">
      <Switch id="airplane-mode" />
      <label htmlFor="airplane-mode">Airplane Mode</label>
    </div>
  )
}