Download wp-calypso/client/components/forms/form-setting-explanation/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/forms/form-setting-explanation/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/forms/form-setting-explanation/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/forms/form-setting-explanation/index.tsx
517 Bytes
| import clsx from 'clsx'; | |
| import { forwardRef } from 'react'; | |
| import './style.scss'; | |
| const FormSettingExplanation = forwardRef< | |
| HTMLParagraphElement, | |
| { children: React.ReactNode; className?: string; isIndented?: boolean } | |
| >( ( { children, className = '', isIndented = false }, forwardedRef ) => { | |
| return ( | |
| <p | |
| className={ clsx( 'form-setting-explanation', className, { | |
| 'is-indented': isIndented, | |
| } ) } | |
| ref={ forwardedRef } | |
| > | |
| { children } | |
| </p> | |
| ); | |
| } ); | |
| export default FormSettingExplanation; | |