Download wp-calypso/client/components/forms/form-checkbox/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 456 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/forms/form-checkbox/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/forms/form-checkbox/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/forms/form-checkbox/index.tsx
456 Bytes
| import clsx from 'clsx'; | |
| import { InputHTMLAttributes, forwardRef } from 'react'; | |
| import './style.scss'; | |
| type CheckboxProps = InputHTMLAttributes< HTMLInputElement >; | |
| const FormInputCheckbox = forwardRef< HTMLInputElement | null, CheckboxProps >( | |
| ( { className, ...otherProps }, ref ) => ( | |
| <input | |
| ref={ ref } | |
| { ...otherProps } | |
| type="checkbox" | |
| className={ clsx( className, 'form-checkbox' ) } | |
| /> | |
| ) | |
| ); | |
| export default FormInputCheckbox; | |