Switch

Simple binary switch control





1import React, { useState } from 'react'
2import Switch from '@hummingbot/hbui/components/switch'
3
4const [active, setActive] = useState(true)
5
6<Switch
7  active={active}
8  onChange={() => setActive(!active)}
9/>