mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-11-18 10:42:06 +00:00
add headers fields
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
export interface IFormField {
|
||||
fieldName: string;
|
||||
type: string;
|
||||
}
|
||||
|
||||
const FormField = ({ fieldName, type }: IFormField) => {
|
||||
return (
|
||||
<div className="flex flex-col gap-2">
|
||||
<label htmlFor={fieldName} className="text-sm capitalize">
|
||||
{fieldName}
|
||||
</label>
|
||||
<input
|
||||
className="headers__input"
|
||||
type={type}
|
||||
id={fieldName}
|
||||
name={fieldName}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default FormField;
|
||||
Reference in New Issue
Block a user