search sscreen

This commit is contained in:
2024-05-04 12:32:19 +03:00
parent 3652b99f4c
commit bb49021fb8
14 changed files with 696 additions and 46 deletions

View File

@@ -0,0 +1,18 @@
import React from "react";
import { FieldInput, FieldLabel, FieldWrapper } from "./field.style";
export const InputField = ({ id, placeHolder, value, label }) => {
return (
<FieldWrapper>
<FieldLabel htmlFor={id}>
{label}
</FieldLabel>
<FieldInput id={id} type="text" placeholder={placeHolder} value={value} />
</FieldWrapper>
);
};
InputField.defaultProps = {
id: `input-${(Math.random() * 10).toString()}`,
};