Last updated 1 year ago
A simple switch component.
import React, { useState } from 'react' import { Switch } from '@aragon/ui' const App = () => { const [checked, setChecked] = useState(false) return <Switch checked={checked} onChange={setChecked} /> }
checked
Boolean
false
disabled
onChange
Function: (checked: Boolean) -> *
Function
(checked: Boolean) -> *
() => {}