Download wp-calypso/packages/components/src/select-dropdown/label.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/select-dropdown/label.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/components/src/select-dropdown/label.jsx
-
curl -L -o label.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/select-dropdown/label.jsx
369 Bytes
| import { FormLabel } from '../forms'; | |
| // Prevents the event from bubbling up the DOM tree | |
| const stopPropagation = ( event ) => event.stopPropagation(); | |
| export default function SelectDropdownLabel( { children } ) { | |
| return ( | |
| <li onClick={ stopPropagation } role="presentation" className="select-dropdown__label"> | |
| <FormLabel>{ children }</FormLabel> | |
| </li> | |
| ); | |
| } | |