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.

13 lines
449B

  1. import React from 'react'
  2. function FormikControlErrorMessage(props) {
  3. const {name, label, className, children, ...rest} = props
  4. const classNames = ['error text-right text-sm text-red-700 mt-1 mr-1', className].join(' ');
  5. return <div className={classNames} {...rest}>
  6. <span className="sr-only">{label} field validation error message: </span>
  7. <span>{children}</span>
  8. </div>
  9. }
  10. export default FormikControlErrorMessage