UNPKG

vcc-ui

Version:

VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.

22 lines (17 loc) 502 B
The Checkbox component is controlled component input field that handles user events. For more on controlled components [see here](https://reactjs.org/docs/forms.html#controlled-components). All props, except for `extend`, will be passed through. ### Example ```jsx live=true () => { const [checked, setChecked] = React.useState(true); return ( <Checkbox checked={checked} onChange={e => setChecked(e.target.checked)} /> ); }; ``` ### Changelog - *Added in version 0.0.45*