button_group() renders a row of styled action buttons (primary, secondary, outline, destructive, ghost). Click any button below to see the dispatched action payload.
button_group()
primary
secondary
outline
destructive
ghost
<ComponentPreview title="Interactive Button Group (click a button)">
{
"type": "button_group",
"buttons": [
{"label": "Run Agent", "action": "run_agent", "variant": "primary"},
{"label": "Dry Run", "action": "dry_run", "variant": "outline"},
{"label": "Clear Cache", "action": "clear_cache", "variant": "destructive"}
]
}
</ComponentPreview>
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
| Parameter | Type | Description |
|---|---|---|
| buttons | list[dict] | Button specs with label, action (or href), optional variant, and optional payload. |
buttons
list[dict]
label
action
href
variant
payload