npm
Controls

Toggle

Enamel switch.

<Toggle aria-label="Music" checked={music} onChange={(event) => setMusic(event.currentTarget.checked)} />

A native checkbox presented as a switch. State remains fully controlled through standard input props.