()
| 16 | } |
| 17 | |
| 18 | export function DefaultCheckedExample() { |
| 19 | return ( |
| 20 | <Switch class={style.switch} defaultChecked> |
| 21 | <Switch.Label class={style.switch__label}>Airplane mode</Switch.Label> |
| 22 | <Switch.Input class={style.switch__input} /> |
| 23 | <Switch.Control class={style.switch__control}> |
| 24 | <Switch.Thumb class={style.switch__thumb} /> |
| 25 | </Switch.Control> |
| 26 | </Switch> |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | export function ControlledExample() { |
| 31 | const [checked, setChecked] = createSignal(false); |
nothing calls this directly
no outgoing calls
no test coverage detected