AhaSlides Design
v0.52.0React · Vue · Lit

Patterns · Settings

Info box

A settings-only tinted callout in four tones (information / success / warning / error), optionally dismissible — a bespoke component, not Ant Alert.

Examples

Tone
Four tones — bespoke tinted callouts (not Ant Alert); the warning one is dismissible
Points are awarded for correct answers only. Your changes are saved. Turning this off clears saved responses. This slide type needs at least two options.

API

PropTypeDefaultNotes
variantinformation | success | warning | errorinformationThe tone — sets fill, border and leading glyph
iconstringOverride the tone's default glyph with a named DS icon
dismissiblebooleanfalseShow the ✕ dismiss control
dismissCustomEventComposed event after the box fades out

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-info-box';   // registers <aha-info-box>

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

When to use

When to use
  • Info box — a settings-panel callout explaining a state or a consequence in place
  • Help text — a one-line must-see consequence attached to a single setting (≤90 chars) — not a box
  • Tooltip — secondary what/why/how elaboration on a ? glyph
Bespoke, NOT Ant Alert — Alert renders outside the DS theme. Keep callouts rare: most explanation is a ? tooltip or nothing (SETTINGS-28). Use error/warning for a consequence, not decoration.
Surfaces
editor settings

Spec

Box padding 12 · radius 8 · 1px tinted border + tinted fill per tone · Information #F4F8FF fill · #BFD2FF border · #9BB3E9 glyph (system-info) · Success #D8FAEF fill · #16C49A border/glyph (system-check-circle) · Warning #FFF5F0 fill · #FF7747 border/glyph (system-warning-circle) · Error #FFE3E9 fill · #FF4081 border/glyph — Radical Pink, NOT red (system-x-circle) · Dismiss optional ✕ (system-x); fades out on a persistent node, emits `dismiss` · Text Plus Jakarta 14/21 #1A1A1A