Toggle switch
Toggle switches are selection controls that provide only two mutually exclusive options (usually "on" or "off") and always have a default value.
Toggle switches are the best solution for changing system settings where feedback is immediate, such as turning on dark mode or airplane mode.
The selection of a toggle switch takes effect immediately. On the other hand, after selecting a checkbox option, users have to press the Submit button.