Live preview
What you try is exactly what we tested

Live demo: Button
What you try is exactly what we testedWhat it is
A clickable button that dispatches an action. Supports 'primary' and 'borderless' variants.
In the trip planner
The trip planner, a worked example built only from Basic Catalog parts, uses 2 Button parts: Save plan and Change dates; pressing one sends an action to the agent. See it running, with every part numbered.
Counted from one real request (Oslo, 3 days (Basic components only, text version), 32 parts, 2026-11-14).
Properties
| Property | Type | Required | Allowed values | New in 1.0 |
|---|---|---|---|---|
child | Child | yes | – | |
variant | string | no | default, primary, borderless | |
action | Action | yes | – |
Evidence
PASS React 0.15.0 with web_core 0.15.0, v1.0 module · headless Chromium, Linux · 2026-11-14 · 1 run
What is not claimed
- Other renderers (Lit, Angular, community) were not rerun; the 8 November 2026 matrix stands.
- Gemini Enterprise was not tested in this run (14 November 2026).
- Remote media was not loaded, so media records element creation and attributes, not playback.
- Layout and visual quality are not judged.
Media and links in the examples use example.invalid placeholders. Navigation is intercepted and media is not played.
Findings
No findings recorded for this component.
Recorded cases
| Case | Expected | Observed | Verdict |
|---|---|---|---|
click -> action name + literal context | one action go with the literal context | PASS | |
context value bound to data path | context values read from the data model | PASS | |
context resolved at click time (model updated between clicks) | context resolved at click time | PASS | |
context value = formatString call | formatString result in the context | PASS | |
two clicks -> two callbacks | two clicks, two actions | PASS | |
no context key | action with an empty context | PASS | |
button inside List template, relative context path; click 2nd | relative path resolves per item | PASS | |
checks required(/name): disabled -> fill model -> enabled -> click | disabled while invalid, enabled once valid, then fires | PASS | |
and/or/not check composition -> disabled flags | and, or, not as check conditions drive the disabled state (covered value by value in the function cases below) | observed {"dis": ["AND:true", "OR:false", "NOT:true"], "dis2": ["AND:false", "OR:false", "NOT:true"]} | OBSERVED |