Download wp-calypso/client/components/forms/form-textarea/index.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/forms/form-textarea/index.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/forms/form-textarea/index.jsx
-
curl -L -o index.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/forms/form-textarea/index.jsx
426 Bytes
| import clsx from 'clsx'; | |
| import './style.scss'; | |
| const FormTextarea = ( { | |
| className = '', | |
| isError = false, | |
| isValid = false, | |
| children = undefined, | |
| forwardedRef = undefined, | |
| ...otherProps | |
| } ) => ( | |
| <textarea | |
| { ...otherProps } | |
| className={ clsx( className, 'form-textarea', { | |
| 'is-error': isError, | |
| 'is-valid': isValid, | |
| } ) } | |
| ref={ forwardedRef } | |
| > | |
| { children } | |
| </textarea> | |
| ); | |
| export default FormTextarea; | |