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

Function DefaultCheckedExample

apps/docs/src/examples/checkbox.tsx:22–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22export function DefaultCheckedExample() {
23 return (
24 <Checkbox class={style.checkbox} defaultChecked>
25 <Checkbox.Input class={style.checkbox__input} />
26 <Checkbox.Control class={style.checkbox__control}>
27 <Checkbox.Indicator>
28 <CheckIcon />
29 </Checkbox.Indicator>
30 </Checkbox.Control>
31 <Checkbox.Label class={style.checkbox__label}>Subscribe</Checkbox.Label>
32 </Checkbox>
33 );
34}
35
36export function ControlledExample() {
37 const [checked, setChecked] = createSignal(false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected