form validation with formik

This commit was merged in pull request #41.
This commit is contained in:
victorAnumudu
2024-04-24 11:42:04 +01:00
parent 4b008f6785
commit 2cb5c471f6
13 changed files with 977 additions and 804 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ const InputCompOne = forwardRef<HTMLInputElement, InputCompOneProps>(
return (
<div className={parentClass}>
{label && (
<label htmlFor={label ? label : floatLabel} className={`flex gap-2 items-center ${labelClass}`}>
<label htmlFor={label ? label : floatLabel} className={`flex gap-2 items-center flex-wrap ${labelClass}`}>
{label}
{labelSpan && <span className={labelSpanClass}>{labelSpan}</span>}
{error && label && <span className='text-[10px] text-red-500'>{error}</span>}