Skip to content

Commit

Permalink
Add InputError component for React
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Aug 2, 2022
1 parent 40e0536 commit c509412
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stubs/inertia-react/resources/js/Components/InputError.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function InputError({ message, className = '' }) {
return message ? (
<p className={'text-sm text-red-600 ' + className}>
{message}
</p>
) : null
}

0 comments on commit c509412

Please sign in to comment.