diff --git a/src/Input.jsx b/src/Input.jsx
index 3acc9e8..d890ab3 100644
--- a/src/Input.jsx
+++ b/src/Input.jsx
@@ -22,14 +22,16 @@ export function Field({ children, className, ...rest }) {
}
export const InputField = forwardRef(
- ({ id, label, className, type, checked, ...rest }, ref) => {
+ ({ id, label, className, type, checked, prefix, suffix, ...rest }, ref) => {
return (
+ {prefix && {prefix}}
+ {suffix && {suffix}}
);
}
diff --git a/src/Input.module.css b/src/Input.module.css
index 736a3b7..b47a20d 100644
--- a/src/Input.module.css
+++ b/src/Input.module.css
@@ -40,6 +40,10 @@
min-width: 0;
}
+.inputField span {
+ padding: 11px 9px;
+}
+
.inputField input::placeholder {
transition: color 0.25s ease-in 0s;
color: transparent;
@@ -77,7 +81,8 @@
}
.inputField input:focus + label,
-.inputField input:not(:placeholder-shown) + label {
+.inputField input:not(:placeholder-shown) + label,
+.inputField.prefix input + label {
background-color: var(--bgColor2);
transition: font-size 0.25s ease-out 0s, color 0.25s ease-out 0s,
top 0.25s ease-out 0s, background-color 0.25s ease-out 0s;
diff --git a/src/LoginPage.jsx b/src/LoginPage.jsx
index 67493cd..c20e7da 100644
--- a/src/LoginPage.jsx
+++ b/src/LoginPage.jsx
@@ -67,17 +67,6 @@ export function LoginPage() {
Log In
To continue to Element