Skip to content
Snippets Groups Projects
Commit 7d9fdc95 authored by Aggarwal Himanshu's avatar Aggarwal Himanshu
Browse files

Add Input component

parent 140d788a
No related branches found
No related tags found
2 merge requests!7Merge develop to main,!5Filters Feature
import React from "react";
function Input({ placeholder, type, onChange, initialValue }) {
return (
<input
className="w-full h-12 text-base focus:ring-indigo-500 focus:border-indigo-500 border-1 border-transparent font-semibold outline-none dark:text-white px-3 pr-3 rounded-2xl bg-dark-800"
placeholder={placeholder}
type={type ? type : "text"}
onChange={onChange}
defaultValue={initialValue || ""}
></input>
);
}
export default Input;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment