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.

23 lines (18 loc) 513 B
The Radio 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. ### Default example ```jsx live=true () => { const [checked, setChecked] = React.useState(false); return <Radio checked={checked} name="my-radio-group" onChange={(e) => { setChecked(e.target.checked) }} /> } ``` ### Changelog - *Added in version 1.0.0*