Spaces:
Running
Running
Download bioai-platform/frontend/src/components/ui/FlatInput.tsx from Samad14/bio-nexus-api: direct link, hf CLI and curl.
- Browser
- Download file 704 Bytes
-
https://huggingface.co/spaces/Samad14/bio-nexus-api/resolve/main/bioai-platform/frontend/src/components/ui/FlatInput.tsx
- Command line
-
hf download hf://spaces/Samad14/bio-nexus-api/bioai-platform/frontend/src/components/ui/FlatInput.tsx
-
curl -L -o FlatInput.tsx https://huggingface.co/spaces/Samad14/bio-nexus-api/resolve/main/bioai-platform/frontend/src/components/ui/FlatInput.tsx
704 Bytes
| 'use client'; | |
| /** | |
| * Neutral, flat input for data entry (PDB IDs, accession numbers, | |
| * FASTA sequences). Precision over decoration — visual noise here | |
| * increases error rate. Expressive styling is for the buttons that | |
| * submit these fields, not the fields themselves. | |
| */ | |
| export function FlatInput(props: React.InputHTMLAttributes<HTMLInputElement>) { | |
| const { className = '', ...rest } = props; | |
| return <input {...rest} className={`input-flat ${className}`} />; | |
| } | |
| export function FlatTextarea(props: React.TextareaHTMLAttributes<HTMLTextAreaElement>) { | |
| const { className = '', ...rest } = props; | |
| return <textarea {...rest} className={`input-flat resize-none font-mono ${className}`} />; | |
| } | |