Components
The reusable pieces your AI can show — markup plus a typed shape.
A component is a piece of interface you design once: a chart, a card, a form. It has two parts.
| Part | What it is | Who writes it |
|---|---|---|
| Markup | XML that says what it looks like | You (or the console’s assistant) |
| Shape | The values it reads, with types and a sentence each | You |
The shape is the contract. It’s what the component reads, what a data source must return, and what your model is held to when it calls the component.
Values in, interface out
Section titled “Values in, interface out”Placeholders like {{ title }} are filled from data. Buttons send a named action to your app.
<Card padding="5"> <Column gap="3"> <Text weight="semibold">{{ title }}</Text> <Text size="sm" color="mutedForeground">{{ body }}</Text> <Button label="{{ primary }}" action="send_reminders" /> </Column></Card>Live — press a button to see the action your app receives