Download next.js/examples/api-routes-apollo-server-and-client-auth/components/field.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/api-routes-apollo-server-and-client-auth/components/field.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/api-routes-apollo-server-and-client-auth/components/field.tsx
-
curl -L -o field.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/api-routes-apollo-server-and-client-auth/components/field.tsx
465 Bytes
| export default function Field({ name, label, type, autoComplete, required }) { | |
| return ( | |
| <div> | |
| <label id={[name, "label"].join("-")} htmlFor={[name, "input"].join("-")}> | |
| {label} {required ? <span title="Required">*</span> : undefined} | |
| </label> | |
| <br /> | |
| <input | |
| autoComplete={autoComplete} | |
| id={[name, "input"].join("-")} | |
| name={name} | |
| required={required} | |
| type={type} | |
| /> | |
| </div> | |
| ); | |
| } | |