parent
9b4ca72c73
commit
a485b42b81
4 changed files with 27 additions and 14 deletions
@ -0,0 +1,22 @@ |
|||||||
|
import React from "react"; |
||||||
|
|
||||||
|
const CustomSelectBox = ({ options }) => { |
||||||
|
return ( |
||||||
|
<select className="customizeSelect rounded text-xs mx-1 py-2 bg-[#F9F9F9] focus:bg-white border-[#E0E0E0] focus:border-[#2483E1] focus:ring-transparent"> |
||||||
|
{options.map((option, index) => ( |
||||||
|
<option key={index}>{option.title}</option> |
||||||
|
))} |
||||||
|
</select> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export default CustomSelectBox; |
||||||
|
|
||||||
|
CustomSelectBox.defaultProps = { |
||||||
|
options: [ |
||||||
|
{ title: "میزان تحصیلات" }, |
||||||
|
{ title: "کارشناسی" }, |
||||||
|
{ title: "ارشد" }, |
||||||
|
{ title: "دکتری" }, |
||||||
|
], |
||||||
|
}; |
Loading…
Reference in new issue