()
| 44 | } |
| 45 | |
| 46 | export function ToggleExample() { |
| 47 | const [visible, setVisible] = createSignal(true); |
| 48 | return ( |
| 49 | <div class={style["toggle-root"]}> |
| 50 | <ToggleButton |
| 51 | class={style["toggle-button"]} |
| 52 | pressed={visible()} |
| 53 | onChange={setVisible} |
| 54 | > |
| 55 | Show {visible() ? "content" : "skeleton"} |
| 56 | </ToggleButton> |
| 57 | <Skeleton class={style.skeleton} visible={visible()}> |
| 58 | <p> |
| 59 | A UI toolkit for building accessible web apps and design systems with |
| 60 | SolidJS. |
| 61 | </p> |
| 62 | </Skeleton> |
| 63 | </div> |
| 64 | ); |
| 65 | } |
nothing calls this directly
no outgoing calls
no test coverage detected