<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.
Events (name)
<baht-error-state heading="Backend unavailable" message="The API is not responding." retry-label="Retry"></baht-error-state>| Name | Type | Default | Description |
|---|---|---|---|
icon | string | 'error' | Hand-drawn illustration name (error by default) or any emoji / short text; empty hides it |
heading | string | 'Something went wrong' | Headline |
message | string | '' | Detail line |
retry-label | string | '' | Shows a retry button with this label when set |
Events
Section titled “Events”| Event | detail | Description |
|---|---|---|
name | CustomEvent | |
baht-retry | none | Retry button clicked |