|
|
|
@ -10,6 +10,7 @@ const SearchBox = ({ |
|
|
|
|
backgroundColor, |
|
|
|
|
inputWidth, |
|
|
|
|
placeHolderColor, |
|
|
|
|
placeholder, |
|
|
|
|
}) => { |
|
|
|
|
const [activeSearchBox, setActiveSearchBox] = useState(false); |
|
|
|
|
return ( |
|
|
|
@ -33,7 +34,7 @@ const SearchBox = ({ |
|
|
|
|
onFocus={() => setActiveSearchBox(true)} |
|
|
|
|
// onBlur={() => setActiveSearchBox(false)}
|
|
|
|
|
type="text" |
|
|
|
|
placeholder="دنبال چه چیزی هستید" |
|
|
|
|
placeholder={placeholder} |
|
|
|
|
className={`text-xs text-blue-400 rounded focus:outline-none border focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20 ${placeHolderColor}`} |
|
|
|
|
style={{ |
|
|
|
|
backgroundColor: backgroundColor, |
|
|
|
@ -51,6 +52,8 @@ SearchBox.defaultProps = { |
|
|
|
|
cancleIcon: zarbedar, |
|
|
|
|
searchIcon: search, |
|
|
|
|
|
|
|
|
|
placeholder: "دنبال چه چیزی هستید", |
|
|
|
|
|
|
|
|
|
inputWidth: "15%", |
|
|
|
|
|
|
|
|
|
borderClr: "#B5D6FF", |
|
|
|
|