Preview
Loading preview…
root = FollowUps(["Compare with Q2", "Show top customers", "Export as a report"])A click sends the item to your onAction as { type: "send", message }.
Signature
This is the line a model reads in the system prompt.
FollowUps(items:[str])- Group: Content
- Children: No
- Positional arguments:
items(a trailing?means it may be left out)
Props
| Prop | Type | How to write it | Notes |
|---|---|---|---|
items |
list of string | positional, required |
Use your own component
Keep the name and schema, swap what is drawn. The prompt and the model’s output do not change.
import { ui } from "@gistui/react/ui";
const lib = ui.extend({ FollowUps: MyFollowUps });
<GistUI library={lib} stream={response.body} />;<GistUI :source="answer" :components="{ FollowUps: MyFollowUps }" /><GistUI source={answer} components={{ FollowUps: MyFollowUps }} /><GistUI source={answer()} components={{ FollowUps: MyFollowUps }} />import { ui } from "@gistui/vanilla/ui";
const lib = ui.extend({ FollowUps: (ctx) => ({ el: myElement(ctx) }) });See Custom components for the full contract. Style hook: [data-gistui="FollowUps"].