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
Markdown
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.
```jsx live=true
() => {
const [checked, setChecked] = React.useState(true);
return (
<Checkbox
checked={checked}
onChange={e => setChecked(e.target.checked)}
/>
);
};
```
- *Added in version 0.0.45*