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

disabled

onChange

Last updated