The Radio component creates a set of radio buttons where only one option can be selected.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/gradio-app/gradio/llms.txt
Use this file to discover all available pages before exploring further.
Basic usage
Constructor
List of options. Can be values or (label, value) tuples
Default selected option. If None, no option is selected initially
Return type:
"value"- Returns selected value"index"- Returns selected index
Label displayed above component
Whether to display radio buttons right-to-left
Events
- select - Triggered when option is selected
- change - Triggered when selection changes
- input - Triggered on input