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;
|
||||
23
onix-gui/GUI/components/InputField/InputField.module.css
Normal file
23
onix-gui/GUI/components/InputField/InputField.module.css
Normal file
@@ -0,0 +1,23 @@
|
||||
.inputContainer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 1.5rem 1rem;
|
||||
}
|
||||
|
||||
.inputLabel {
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.inputField {
|
||||
padding: 1rem;
|
||||
font-family: "Ubuntu Mono", sans-serif;
|
||||
color: white;
|
||||
font-size: 1rem;
|
||||
border-radius: 15px;
|
||||
border: 1px solid rgb(61, 61, 61);
|
||||
background: #000000;
|
||||
|
||||
min-width:15rem
|
||||
}
|
||||
Reference in New Issue
Block a user