import React from "react"; import "./ButtonDesign.scss"; import greenLeftArrow from "../../assets/icons/green-left-arrow.svg"; import whiteLeftArrow from "../../assets/icons/white-left-arrow.svg"; import whiteRightArrow from "../../assets/icons/white-right-arrow.svg"; import whiteUpwardArrow from "../../assets/icons/white-upward-arrow.svg"; import whiteDownwardArrow from "../../assets/icons/white-downward-arrow.svg"; import blackRightArrow from "../../assets/icons/black-right-arrow.svg"; import blackLeftArrow from "../../assets/icons/black-left-arrow.svg"; import blackUpwardArrow from "../../assets/icons/black-upward-arrow.png"; import blackDownwardArrow from "../../assets/icons/black-downward-arrow.png"; const ButtonDesign = ({ buttonBgColor, circleArrowBgClr, buttonTextColor, buttonBorder, buttonBorderColor, buttonBorderRadius, buttonPaddingX, buttonPaddingY, imageMarginRight, imageWidth, imageHeight, // icons leftArrowWhite, rightArrowWhite, upwardArrowWhite, downwardArrowWhite, leftArrowBlack, rightArrowBlack, upwardArrowBlack, downwardArrowBlack, circleArrow, }) => { return (

طراحی دکمه های سایت

نام این کامپوننت buttonDesign است.

{/* Button UI Design */}
); }; export default ButtonDesign; // color classes that i defined in tailwind.config.js and we can use for text color: // ----> text-grayTextColor // ----> text-white // color classes that i defined in tailwind.config.js and we can use for background color: // ----> bg-darkGreenBg // ----> bg-midGrayBgColor // color classes that i defined in tailwind.config.js and we can use for border color: // ----> border-lightBlueBorderColor ButtonDesign.defaultProps = { buttonBgColor: "bg-darkGreenBg", circleArrowBgClr: "bg-darkGreenBg", buttonTextColor: "text-white", buttonBorder: "border-b-4", buttonBorderColor: "border-lightBlueBorderColor", buttonBorderRadius: "rounded", buttonPaddingX: "px-6", buttonPaddingY: "py-4", imageMarginRight: "mr-2", imageWidth: "w-4", imageHeight: "h-4", // icons leftArrowWhite: true, rightArrowWhite: false, upwardArrowWhite: false, downwardArrowWhite: false, leftArrowBlack: false, rightArrowBlack: false, upwardArrowBlack: false, downwardArrowBlack: false, circleArrow: false, };