Xp Bar

Experience points or gamification progress bar showing current XP, level label, and XP needed to reach the next level. The fill animates from the previous value to the current value on render via CSS transition. A level-up flash overlay triggers when xp_current equals or exceeds xp_next.

Surfaces
webmeet-stageapps-script-web
Degraded on
SurfaceNote
pdfRenders as a static labelled progress bar — no animation or level-up effect
Fields
FieldType
level_labelstring. Current level name e.g. "Level 3 — Intermediate".required
xp_currentinteger. Current XP within the current level.required
xp_nextinteger. XP required to reach the next level.required
accentstring. Bar fill colour. Default "#6366f1".optional
show_flashboolean (optional, default true). Trigger level-up flash when xp_current >= xp_next.optional
Example payload
{
  "type": "xp_bar",
  "level_label": 75,
  "xp_current": 2,
  "xp_next": 75
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:xp_bar",
  "displayName": "Xp Bar",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/xp_bar",
  "capabilities": [
    "web",
    "meet-stage",
    "apps-script-web"
  ],
  "description": "Experience points or gamification progress bar showing current XP, level label, and XP needed to reach the next level. The fill animates from the previous value to the current value on render via CSS transition. A level-up flash overlay triggers when xp_current equals or exceeds xp_next.",
  "representativeQueries": [
    "show a animated XP/points progress bar with level label and level-up flash",
    "experience points or gamification progress bar showing current xp, level label, and xp needed to rea",
    "render a xp bar"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.

git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →