ErrorState

Error states acknowledge failure gracefully. They explain what went wrong, reassure the user, and provide a clear path to recovery — typically a retry button. The inline variant fits inside cards or sections, while the page variant takes over the full viewport.

API Reference

PropTypeDefaultDescription
variant"inline" | "page""page"Display variant
titlestring"Something went wrong"Error title
descriptionstringError description text
onRetry() => voidRetry callback
retryLabelstring"Try again"Retry button label
classNamestringAdditional CSS classes

Source Code