react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /textarea-control.tsx
react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /textarea-control.tsx
Download wp-calypso/client/devdocs/design/wordpress-components-gallery/textarea-control.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/textarea-control.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/devdocs/design/wordpress-components-gallery/textarea-control.tsx
-
curl -L -o textarea-control.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/textarea-control.tsx
383 Bytes
| import { TextareaControl } from '@wordpress/components'; | |
| import { useState } from 'react'; | |
| const TextareaControlExample = () => { | |
| const [ value, setValue ] = useState( '' ); | |
| return ( | |
| <TextareaControl | |
| label="Hidable Label Text" | |
| help="Help text for the textarea" | |
| rows={ 4 } | |
| value={ value } | |
| onChange={ setValue } | |
| /> | |
| ); | |
| }; | |
| export default TextareaControlExample; | |