This is just a technology testing project based on Create React App and TailwindCSS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2KB

  1. import React from 'react'
  2. function ButtonSecondary(props) {
  3. const {type, text, action, disabled} = props
  4. return <>
  5. <button
  6. type={type||'button'}
  7. className="
  8. appearance-none
  9. flex
  10. relative
  11. w-full
  12. p-3
  13. border-2
  14. rounded-md
  15. border-primary-800
  16. bg-white
  17. text-primary-800
  18. cursor-pointer
  19. shadow-md
  20. hover:bg-primary-500
  21. hover:text-white
  22. focus:bg-primary-500
  23. focus:outline-none
  24. active:shadow-inner
  25. active:bg-primary-500
  26. active:transform
  27. active:translate-y-px
  28. disabled:bg-white
  29. disabled:opacity-50
  30. disabled:shadow-md
  31. disabled:translate-y-0
  32. disabled:cursor-not-allowed
  33. "
  34. onClick={action}
  35. disabled={disabled}
  36. >
  37. <div className="sm:text-lg flex-grow text-center px-6">{text||'primary Button'}</div>
  38. </button>
  39. </>
  40. }
  41. export default ButtonSecondary