/** * DTSwitch — Angular toggle switch. * * CSS reference: forms-dt.css .dt-switch, .dt-switch-track, .dt-switch-thumb */ import type { CSSProperties } from 'react'; import { cx } from '../utils/cx'; interface DTSwitchProps { checked: boolean; onChange: (checked: boolean) => void; disabled?: boolean; label?: string; className?: string; style?: CSSProperties; } export function DTSwitch({ checked, onChange, disabled = false, label, className, style, }: DTSwitchProps) { return (