Skip to content

Result ​

A result feedback page supporting success, error, warning, info, plus 403/404/500 HTTP error page states — with dual title/description channels, a body slot, custom icons and size tiers.

Basic usage ​

Basic usage

Four states ​

Each of the four states comes with an original SVG icon on a circular tinted background; state colors follow semantic tokens (with dark variants).

Four states

HTTP error pages (403 / 404 / 500) ​

The status attribute supports 403 / 404 / 500 HTTP error scenarios, each with an original semantic glyph (padlock / question mark / server). Color mapping: 403→warning, 404→primary, 500→danger.

403 Forbidden

Back to homeContact admin

404 Not Found

Back to home

500 Server Error

Refresh and retry

Rich description ​

Rich description content goes through the description slot, which overrides the attribute text when present.

Rich description (slot=description)

Maintenance window: tonight 22:00 – 24:00; some services may be briefly unavailable.

Body content (error detail list) ​

The default slot is the body content area between the description and the action area — the classic spot for listing error details.

Body content (error detail list)

  • Recipient name is required
  • The phone number format is invalid
  • The invoice title does not match the tax ID
Back to edit

Custom icon ​

Passing a custom icon through the icon slot switches to a neutral state (the semantic tinted background and state color are removed, so the icon is fully custom) — useful for branded or special-purpose results.

Custom icon (slot=icon)

View review progress

Size tiers ​

size provides small / medium / large (default medium), scaling both the icon diameter and typography.

Size tiers

Rich title ​

The title slot accepts rich content (for example a large status code composed with explanatory text), overriding the title attribute.

Rich title (slot=title)

Cannot reach the server

API ​

oas-result ​

Attributes ​

AttributeDescriptionTypeDefault
descriptionDescription textstring—
sizeSize preset small / medium (default) / large: scales icon diameter and font sizesstringmedium
statusStatus: success / error / warning / info / 403 / 404 / 500 (HTTP error pages with dedicated icons); invalid values fall back to success with a warningstringsuccess
titleTitle text (rendered into the visible title region; absorbed from the host on read so no native hover tooltip remains; pass an empty string to clear); use the "title" slot for rich contentstring—

Slots ​

NameDescription
defaultContent area (error detail lists, etc.), placed between the description and the extra actions
descriptionRich description slot; overrides the description attribute when present
extraAction area, placed below the description
iconCustom icon (overrides the built-in status icon; switches to neutral styling without the tinted backdrop)
titleRich title content slot; overrides the title attribute text when present

CSS Variables ​

CSS VariableDefault
--oas-result-desc-sizevar(--oas-font-size-md)
--oas-result-title-sizevar(--oas-font-size-xl)

Released under the MIT OR Apache-2.0 License.