copied new version
This commit is contained in:
19
onix-gui/GUI/components/InputField/InputField.jsx
Normal file
19
onix-gui/GUI/components/InputField/InputField.jsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from "react";
|
||||
import styles from "./InputField.module.css";
|
||||
|
||||
const InputField = ({ label, value, onChange, placeholder = "Input Text" }) => {
|
||||
return (
|
||||
<div className={styles.inputContainer}>
|
||||
<label className={styles.inputLabel}>{label}</label>
|
||||
<input
|
||||
placeholder={placeholder}
|
||||
className={styles.inputField}
|
||||
type="text"
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default InputField;
|
||||
Reference in New Issue
Block a user