parent
1560af4975
commit
167ef1de43
@ -0,0 +1,22 @@ |
||||
const DefaultSelect = ({ |
||||
label = "Token Type *", |
||||
optons = [ |
||||
{ text: "Text", value: "value" }, |
||||
{ text: "Text1", value: "value1" }, |
||||
], |
||||
}) => { |
||||
return ( |
||||
<div className="flex flex-col gap-2"> |
||||
{label && <p className="text-white text-[14px] uppercase"> {label} </p>} |
||||
<select className="w-[100%] p-5 bg-[#141414] border border-[#2C2C2C] rounded-[8px] outline-none text-base text-[#86888C]"> |
||||
{optons.map((item, index) => ( |
||||
<option value={item.value} key={index}> |
||||
{item.text} |
||||
</option> |
||||
))} |
||||
</select> |
||||
</div> |
||||
); |
||||
}; |
||||
|
||||
export default DefaultSelect; |
Loading…
Reference in new issue