I saw that there’s an open issue (#61) for adding a generic error component to the project and I thought I’d take a swing at it. I hope this is helpful, but at the very least it was good practice. I’m open to any changes or feedback and will keep my eyes peeled for any updates. Here’s gist of the component:
Here are the props available on the component:
error: Displays an error heading/title in bold at the beginning of the component
errorDescription: Which displays a more verbose description after the title (limited to the width of the component body)
hideIcon: which hides the icon, which is visible by default
I saw that there’s an open issue (#61) for adding a generic error component to the project and I thought I’d take a swing at it. I hope this is helpful, but at the very least it was good practice. I’m open to any changes or feedback and will keep my eyes peeled for any updates. Here’s gist of the component:
Here are the props available on the component:
error
: Displays an error heading/title in bold at the beginning of the componenterrorDescription
: Which displays a more verbose description after the title (limited to the width of the component body)hideIcon
: which hides the icon, which is visible by default