Download netflix-clone-using-react/src/components/form/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/components/form/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/components/form/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/components/form/index.js
1.22 kB
| import React from 'react'; | |
| import { Container, Base, Error, Title, Text, TextSmall, Link, Input, Submit } from '../form/styles/form'; | |
| export default function Form({ children, ...restProps }) { | |
| return <Container { ...restProps}>{children}</Container>; | |
| } | |
| Form.Base = function FormBase({ children, ...restProps}) { | |
| return <Base { ...restProps}>{children}</Base>; | |
| }; | |
| Form.Error = function FormError({ children, ...restProps}) { | |
| return <Error { ...restProps}>{children}</Error>; | |
| }; | |
| Form.Title = function FormTitle({ children, ...restProps}) { | |
| return <Title { ...restProps}>{children}</Title>; | |
| }; | |
| Form.Text = function FormText({ children, ...restProps}) { | |
| return <Text { ...restProps}>{children}</Text>; | |
| }; | |
| Form.TextSmall = function FormTextSmall({ children, ...restProps}) { | |
| return <TextSmall { ...restProps}>{children}</TextSmall>; | |
| }; | |
| Form.Link = function FormLink({ children, ...restProps}) { | |
| return <Link { ...restProps}>{children}</Link>; | |
| }; | |
| Form.Input = function FormInput({ children, ...restProps}) { | |
| return <Input { ...restProps}>{children}</Input>; | |
| }; | |
| Form.Submit = function FormSubmit({ children, ...restProps}) { | |
| return <Submit { ...restProps}>{children}</Submit>; | |
| }; |