[#37] Login & Register Page UI
https://project.mdnd-it.cc/work_packages/37
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
export default function InputBox({ type, placeholder }) {
|
||||
// src/components/Inputs/InputBox.jsx
|
||||
// InputBox komponens
|
||||
|
||||
export default function InputBox({ type, placeholder, value, onChange }) {
|
||||
return (
|
||||
<div className="mb-6 relative">
|
||||
<input
|
||||
type={type}
|
||||
className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:border-background focus:outline-none text-gray-700 placeholder-gray-400 bg-gray-50"
|
||||
placeholder={placeholder}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user