className | string | Partial<Record<"switch" | "stateLayer" | "icon" | "handle" | "handleContainer", string>> | ClassNameComponent<SwitchInterface> | No | — | Root classes (string), static element classes (object), or state-aware element classes (function). |
defaultChecked | boolean | No | false | Uncontrolled mode: initial checked state. |
checked | boolean | No | — | Controlled mode: explicitly control whether the switch is on. |
activeIcon | Icon | No | — | Icon shown inside the thumb while checked. |
inactiveIcon | Icon | No | — | Icon shown inside the thumb while unchecked. |
disabled | boolean | No | false | Prevents interaction. |
onCheckedChange | (checked: boolean) => void | No | — | Called once for each accepted checked-state transition. |