Download wp-calypso/client/components/forms/form-legend/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/forms/form-legend/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/forms/form-legend/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/forms/form-legend/index.tsx
396 Bytes
| import clsx from 'clsx'; | |
| import * as React from 'react'; | |
| type FormLegendProps = { | |
| className?: string; | |
| children: React.ReactNode; | |
| } & React.HTMLAttributes< HTMLLegendElement >; | |
| const FormLegend = ( { className, children, ...otherProps }: FormLegendProps ) => ( | |
| <legend { ...otherProps } className={ clsx( className, 'form-legend' ) }> | |
| { children } | |
| </legend> | |
| ); | |
| export default FormLegend; | |