Switch
Switches are UI elements that let users choose between two states—most commonly on/off.
useSwitch API
Import
import { useSwitch } from '@mui/base/useSwitch';
// or
import { useSwitch } from '@mui/base';
Switches are UI elements that let users choose between two states—most commonly on/off.
import { useSwitch } from '@mui/base/useSwitch';
// or
import { useSwitch } from '@mui/base';