react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /disabled.tsx
react-code-dataset / wp-calypso /client /devdocs /design /wordpress-components-gallery /disabled.tsx
Download wp-calypso/client/devdocs/design/wordpress-components-gallery/disabled.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/disabled.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/devdocs/design/wordpress-components-gallery/disabled.tsx
-
curl -L -o disabled.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/devdocs/design/wordpress-components-gallery/disabled.tsx
700 Bytes
| import { Disabled, SelectControl, TextControl, TextareaControl } from '@wordpress/components'; | |
| // eslint-disable-next-line @typescript-eslint/no-empty-function | |
| const noop = () => {}; | |
| const DisabledExample = () => { | |
| return ( | |
| <Disabled> | |
| <TextControl label="Text Control" value="" onChange={ noop } /> | |
| <TextareaControl label="TextArea Control" value="" onChange={ noop } /> | |
| <SelectControl | |
| label="Select Control" | |
| onChange={ noop } | |
| options={ [ | |
| { value: '', label: 'Select an option' }, | |
| { value: 'a', label: 'Option A' }, | |
| { value: 'b', label: 'Option B' }, | |
| { value: 'c', label: 'Option C' }, | |
| ] } | |
| /> | |
| </Disabled> | |
| ); | |
| }; | |
| export default DisabledExample; | |