react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /checkbox-control.tsx
react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /checkbox-control.tsx
Download wp-calypso/client/devdocs/design/wordpress-components-gallery/checkbox-control.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/checkbox-control.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/devdocs/design/wordpress-components-gallery/checkbox-control.tsx
-
curl -L -o checkbox-control.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/checkbox-control.tsx
355 Bytes
| import { CheckboxControl } from '@wordpress/components'; | |
| import { useState } from 'react'; | |
| const CheckboxControlExample = () => { | |
| const [ isChecked, setChecked ] = useState( false ); | |
| return ( | |
| <CheckboxControl | |
| label="Example Checkbox Control" | |
| checked={ isChecked } | |
| onChange={ setChecked } | |
| /> | |
| ); | |
| }; | |
| export default CheckboxControlExample; | |