Eingabefeld, Listenansicht erstellt

Eingabefeld fertig + Listenansicht
This commit is contained in:
Manuel Prodinger
2022-03-30 11:26:31 +02:00
parent 73efc44960
commit 00268ebbd2
7 changed files with 34 additions and 9 deletions
+29
View File
@@ -0,0 +1,29 @@
import React, { useState } from "react";
function Eingabefeld(props) {
const [usepollName, setPollName] = useState("");
return (
<div>
<label>{props.label}</label>
<br />
<input
className="form-control
border-radius: 5px
block
w-220
h-35
px-3
py-1.5
text-base
font-normal
border border-solid border-gray-300
rounded"
onChange={(e) => setPollName(e.target.value)}
value={usepollName}
placeholder={props.placeholder}
type={props.isPassword ? "password" : "text"}
/>
</div>
);
}
export default Eingabefeld;