This is just a technology testing project based on Create React App and TailwindCSS
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

10 rindas
413B

  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}><span className="sr-only">{label} field validation error message: </span>{children}</div>
  6. }
  7. export default FormikControlErrorMessage