Pedram Added New Props To Button

master
Pedram Keshavarzi 3 years ago
parent 3eea58fba5
commit 51733b9593
  1. 6
      src/components/Button/index.js

@ -30,12 +30,15 @@ const Button = ({
upwardArrowBlack, upwardArrowBlack,
downwardArrowBlack, downwardArrowBlack,
circleArrow, circleArrow,
title,
onClick
}) => { }) => {
return ( return (
<button <button
className={`flex items-center border-none cursor-pointer py-2.5 px-2 text-sm ${buttonBgColor} ${buttonTextColor} ${buttonBorder} ${buttonBorderColor} ${buttonBorderRadius}`} className={`flex items-center border-none cursor-pointer py-2.5 px-2 text-sm ${buttonBgColor} ${buttonTextColor} ${buttonBorder} ${buttonBorderColor} ${buttonBorderRadius}`}
onClick={onClick}
> >
اطلاعات بیشتر {title}
{leftArrowWhite && ( {leftArrowWhite && (
<img <img
src={whiteLeftArrow} src={whiteLeftArrow}
@ -136,4 +139,5 @@ Button.defaultProps = {
upwardArrowBlack: false, upwardArrowBlack: false,
downwardArrowBlack: false, downwardArrowBlack: false,
circleArrow: false, circleArrow: false,
title: 'اطلاعات بیشتر'
}; };

Loading…
Cancel
Save