MCPcopy Create free account
hub / github.com/kobaltedev/kobalte / DefaultCheckedExample

Function DefaultCheckedExample

apps/docs/src/examples/switch.tsx:18–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18export 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
30export function ControlledExample() {
31 const [checked, setChecked] = createSignal(false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected