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.

17 lines
440B

  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="btn-secondary"
  8. onClick={action}
  9. disabled={disabled}
  10. >
  11. <div className="sm:text-lg flex-grow text-center px-2">{text||'primary Button'}</div>
  12. </button>
  13. </>
  14. }
  15. export default ButtonSecondary