Use radio_input() when options need full labels stacked cleanly, and segmented_input() for compact horizontal pill selectors (multi=False or multi=True).
radio_input()
segmented_input()
multi=False
multi=True
<ComponentPreview title="Radio Group & Segmented Pills">
[
{"type": "radio_input", "label": "Tool Approval Mode", "options": ["Auto-approve", "Ask before tools", "Manual only"], "value": "Ask before tools", "name": "approval"},
{"type": "segmented_input", "name": "window", "label": "Time Window", "options": ["24h", "7d", "30d", "90d"], "value": "7d", "multi": false}
]
</ComponentPreview>
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
| Component | Parameter | Description |
|---|---|---|
| radio_input | label, options, value, name, auto_submit | Single-choice radio group. |
radio_input
label
options
value
name
auto_submit
| segmented_input | name, options, label, value, multi, auto_submit | Pill toggle bar; set multi=True to allow multiple active pills. |
segmented_input
multi