Download wp-calypso/client/components/forms/form-radios-bar/docs/example.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 516 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/forms/form-radios-bar/docs/example.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/forms/form-radios-bar/docs/example.jsx
-
curl -L -o example.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/forms/form-radios-bar/docs/example.jsx
516 Bytes
| import FormRadiosBar from 'calypso/components/forms/form-radios-bar'; | |
| import { | |
| radios, | |
| radiosWithThumbnails, | |
| } from 'calypso/components/forms/form-radios-bar/docs/fixtures'; | |
| const FormRadiosBarExample = ( { isThumbnail, checked, onChange } ) => { | |
| return ( | |
| <FormRadiosBar | |
| isThumbnail={ isThumbnail } | |
| checked={ checked } | |
| onChange={ onChange } | |
| items={ isThumbnail ? radiosWithThumbnails : radios } | |
| /> | |
| ); | |
| }; | |
| FormRadiosBarExample.displayName = 'FormRadiosBar'; | |
| export default FormRadiosBarExample; | |