Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (15 loc) · 363 Bytes

toggle.md

File metadata and controls

21 lines (15 loc) · 363 Bytes

Forms/Textarea

Renders a form toggle.

<Toggle checked={true} />

Props

value={string}}
The toggle value.

name={string}
The name of the toggle.

checked={boolean}
The status of the toggle.

onChange={function}
Triggered when the toggle value changes. Receives the value and name of the toggle as arguments.