defaultChecked to start a switch on, and give each switch an aria-label or visible text that names the setting.size="small" for a smaller switch in dense rows and table cells, next to the default size.shape to square, squircle or default to change the corners of the track, and the knob follows them.color to success, warning or error to paint the on track, its hover and its focus ring in that status color.color to any color name in your theme, like blue, volcano or emerald, to paint the on track in that hue.checkedChildren and unCheckedChildren to show short text or an icon inside the track for each state.disabled to lock a switch in its current state, with a button beside it that turns the lock on and off.loading to show a spinner on the knob and block clicks while a change saves, here in every shape and both sizes.Form.Item with valuePropName="checked" so the form reads and sets its state, with the label beside it.layout to vertical to put the label above the switch, still bound with valuePropName="checked".<label>, with a title and a description, so clicking the text toggles the switch.loading while its change saves, then settles in the new state.<label>, so a click anywhere on it toggles its switch.