Download wp-calypso/client/components/forms/form-section-heading/index.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 695 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/forms/form-section-heading/index.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/forms/form-section-heading/index.jsx
-
curl -L -o index.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/forms/form-section-heading/index.jsx
695 Bytes
| import clsx from 'clsx'; | |
| import './style.scss'; | |
| /** | |
| * Render a form section heading | |
| * @param {Object} props Component props | |
| * @param {string=} props.className optional extra CSS class(es) to be added to the component | |
| * @param {import('react').ReactNode=} props.children react element props that must contain some children | |
| * @param {Object=} props.otherProps react element props that must contain some children | |
| * @returns {import('react').ReactElement} React component | |
| */ | |
| const FormSectionHeading = ( { className, children, ...otherProps } ) => ( | |
| <h3 { ...otherProps } className={ clsx( className, 'form-section-heading' ) }> | |
| { children } | |
| </h3> | |
| ); | |
| export default FormSectionHeading; | |