Skip to content

Commit

Permalink
add classes on error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ionutanin committed Jan 16, 2024
1 parent c6cda6f commit 7a0683f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(function Input(
aria-describedby={errorMessage}
{...props}
/>
{errorMessage && <p>{errorMessage}</p>}
{errorMessage && <p className="text-error text-sm px-2">{errorMessage}</p>}
</div>
)
})

0 comments on commit 7a0683f

Please sign in to comment.