menu

Anique

ToggleSwitch

texture-box
content-copy
xml
import {ToggleSwitch} from "@qinetik/anique/toggleswitch"; import {createSignal} from "solid-js"; export default function BasicSwitchExample(){ const [isChecked, setIsChecked] = createSignal(false) return ( <ToggleSwitch checked={isChecked()} onChange={(e) => { setIsChecked(e.currentTarget.checked) }} /> ) }

Disabled

texture-box
content-copy
xml
import {ToggleSwitch} from "@qinetik/anique/toggleswitch"; import {createSignal} from "solid-js"; export default function DisabledSwitchExample(){ const [isChecked, setIsChecked] = createSignal(false) return ( <ToggleSwitch disabled checked={isChecked()} /> ) }