()
| 4 | import { useState } from 'react'; |
| 5 | |
| 6 | const SwitchExample = () => { |
| 7 | const [checked, setChecked] = useState(false); |
| 8 | return ( |
| 9 | <div className="flex flex-col gap-2"> |
| 10 | <Switch checked={checked} onCheckedChange={() => setChecked(!checked)} /> |
| 11 | <div>{checked ? 'Checked' : 'Unchecked'}</div> |
| 12 | </div> |
| 13 | ); |
| 14 | }; |
| 15 | |
| 16 | export default SwitchExample; |
nothing calls this directly
no outgoing calls
no test coverage detected