AhaSlides Design
v0.52.0React · Vue · Lit

Components · Feedback

Result

A full-block outcome state — success, error, info, warning, 404, 403 or 500 — with an icon, title and actions.

Examples

Status
Outcome state · success (with an action) · error · 403 · 500 · custom icon

API

PropTypeDefaultNotes
statussuccess | error | info | warning | 404 | 403 | 500infoOutcome — picks the glyph and colour
result-titlestringThe headline message
subtitlestringOptional supporting line under the title
iconstring (DS icon name)Overrides the status glyph with any DS icon (e.g. system-shield-warning)

Install

# .npmrc — once: point the @ahaslides-product scope at GitHub Packages
@ahaslides-product:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}   # a GitHub token with read:packages

npm i @ahaslides-product/design
import '@ahaslides-product/design/tokens.css';   // once, at the app root
import '@ahaslides-product/design/aha-result';   // registers <aha-result>

Agent feed for this component (absolute, fetchable anywhere): result.agent.json · result.md · result.llms.txt

When to use

When to use
  • Result — a full-block outcome after an operation or a not-found/empty route (with a next action)
  • Alert — an inline, in-context banner that stays in the layout (feedback pattern)
  • Toast — a transient, auto-dismissing confirmation
Reserve Result for a whole-region outcome — lead with the glyph + a clear title, keep the subtitle to one line, and give a primary next action in slot="extra". For an in-context message use an Alert; for a transient confirmation use a Toast.
Surfaces
editor dashboard audience

Spec

Icon 48px DS glyph, coloured by status (or an `icon` override) · Success check-circle · #16C49A · Error / 500 x-circle / cloud-disconnected · #F5222D · Warning / 403 warning-circle / lock · #FF7747 · Info / 404 info / magnifying-glass · #9BB3E9 · Title 24/32 SemiBold #1A1A1A, centred · Subtitle 14/21 Regular #8A8A8A