0.2.1 • Published 3 years ago

@thesis-ui/toggle v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Toggle component - Thesis UI

Installation

$ yarn add @thesis-ui/toggle
$ npm install @thesis-ui/toggle

Usage

import Toggle from '@thesis-ui/toggle';

const [isOn, setIsOn] = useState(false);

function onChange() {
  setIsOn(!isOn);
}

<Toggle
  isChecked={isOn}
  value="testValue"
  labelValue={`Click me to turn ${isOn ? 'off' : 'on'}`}
  onChange={onChange}
/>
0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago