parent
608f71e723
commit
69ecd9d0a5
4 changed files with 51 additions and 2 deletions
After Width: | Height: | Size: 558 B |
@ -0,0 +1,35 @@ |
|||||||
|
import React from "react"; |
||||||
|
|
||||||
|
import blackCancleIcon from "./black-cancle-icon.svg"; |
||||||
|
|
||||||
|
const NewTagDesign = ({ |
||||||
|
titleColor, |
||||||
|
title, |
||||||
|
tagBgColor, |
||||||
|
tagBorderColor, |
||||||
|
icon, |
||||||
|
fontSize, |
||||||
|
border, |
||||||
|
}) => { |
||||||
|
return ( |
||||||
|
<button |
||||||
|
className={`flex flex-row items-center rounded px-2 py-0.5 ${border} ${fontSize} ${titleColor} ${tagBorderColor} ${tagBgColor} `} |
||||||
|
> |
||||||
|
{title} |
||||||
|
{icon && <img src={icon} alt="" className="mr-5 w-2.5" />} |
||||||
|
</button> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export default NewTagDesign; |
||||||
|
|
||||||
|
NewTagDesign.defaultProps = { |
||||||
|
title: "کتاب", |
||||||
|
titleColor: "text-blue-600", |
||||||
|
tagBgColor: "bg-blue-300 bg-opacity-10", |
||||||
|
border: "border-2", |
||||||
|
tagBorderColor: "border-blue-600", |
||||||
|
fontSize: "text-xs", |
||||||
|
// for icons
|
||||||
|
icon: blackCancleIcon, |
||||||
|
}; |
Loading…
Reference in new issue