Skip to content

ComparisonTable

Data display

Feature matrix comparing options side by side. options are the option names as strings; rows [{feature, values}] with one value per option, in the same order, each true/false/text; highlight is the recommended option's index in options (0 is the first).

Props

Generated from the Zod definition. In A2UI 1.0 any value may also be a { "@path" } binding into the surface data model or a { "@call" } function call.

PropTypeRequiredDescription
titlestringNoHeading shown at the top of the component.
optionsstring[]YesChoices as { value, label } pairs.
rows{ feature, values }[]YesRow objects keyed by column key.
highlightnumberNo-

Used by templates

No fixed template uses ComparisonTable yet. The dynamic composer can still place it in any surface.