Download wp-calypso/client/components/button-group/index.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/button-group/index.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/button-group/index.jsx
-
curl -L -o index.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/button-group/index.jsx
418 Bytes
| import clsx from 'clsx'; | |
| import { memo } from 'react'; | |
| import './style.scss'; | |
| const ButtonGroup = ( { busy = false, children, className = '', primary = false } ) => { | |
| const buttonGroupClasses = clsx( 'button-group', className, { | |
| 'is-busy': busy, | |
| 'is-primary': primary, | |
| } ); | |
| return ( | |
| <span className={ buttonGroupClasses } role="group"> | |
| { children } | |
| </span> | |
| ); | |
| }; | |
| export default memo( ButtonGroup ); | |