Switch
A simple switch component.
Usage
import React, { useState } from 'react'
import { Switch } from '@aragon/ui'
const App = () => {
const [checked, setChecked] = useState(false)
return <Switch checked={checked} onChange={setChecked} />
}Demonstration

Props
checked
checkedTYPE
DEFAULT VALUE
Boolean
false
disabled
disabledTYPE
DEFAULT VALUE
Boolean
false
onChange
onChangeTYPE
DEFAULT VALUE
Function: (checked: Boolean) -> *
() => {}
Last updated
Was this helpful?
