Skip to content
bahtuiv0.6.0

<baht-error-state>

Centered failure placeholder with an optional retry action.

With retry

Retry emits baht-retry; run the fetch again and swap the state out.

<baht-error-state heading="Backend unavailable" message="The API is not responding." retry-label="Retry"></baht-error-state>
NameTypeDefaultDescription
iconstring'error'Hand-drawn illustration name (error by default) or any emoji / short text; empty hides it
headingstring'Something went wrong'Headline
messagestring''Detail line
retry-labelstring''Shows a retry button with this label when set
EventdetailDescription
nameCustomEvent
baht-retrynoneRetry button clicked