()
| 5 | import style from "./toggle-button.module.css"; |
| 6 | |
| 7 | export function BasicExample() { |
| 8 | return ( |
| 9 | <ToggleButton class={style["toggle-button"]} aria-label="Mute"> |
| 10 | {(state) => ( |
| 11 | <Show |
| 12 | when={state.pressed()} |
| 13 | fallback={<VolumeOnIcon class="h-6 w-6" />} |
| 14 | > |
| 15 | <VolumeOffIcon class="h-6 w-6" /> |
| 16 | </Show> |
| 17 | )} |
| 18 | </ToggleButton> |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | export function DefaultPressedExample() { |
| 23 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected