MinervaFrontend/src/components/MyInput.jsx
kuwsh1n 86854956eb
All checks were successful
publish-main / release-image (push) Successful in 6m32s
actions by users
2024-06-21 19:39:42 +03:00

18 lines
532 B
JavaScript

import React from "react";
import classes from "../assets/styles/components/myInput.module.scss";
const MyInput = (props) => {
return (
<div className={classes.main} style={{...props.otherMainStyle}}>
<input
type={props.type}
placeholder={props.placeholder}
style={{...props.otherInputStyle}}
onChange={(e) => props.change(e.target.value)}
value={props.value}
/>
</div>
)
}
export default MyInput;