15 lines
349 B
TypeScript
15 lines
349 B
TypeScript
|
|
import Switch from '@mui/material/Switch';
|
||
|
|
|
||
|
|
const label = { inputProps: { 'aria-label': 'Switch demo' } };
|
||
|
|
|
||
|
|
export default function BasicSwitches() {
|
||
|
|
return (
|
||
|
|
<div>
|
||
|
|
<Switch {...label} defaultChecked />
|
||
|
|
<Switch {...label} />
|
||
|
|
<Switch {...label} disabled defaultChecked />
|
||
|
|
<Switch {...label} disabled />
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|