← Back
Radio
This component displays a set of radio buttons.
Input:
[var name:"radioVal" value:"test1" /]
[Radio value:radioVal options:`["test1", "test2"]` /]
Output:
Props
- value
string
The value of the "checked" radio button
- Example:
x
- Example:
- options
array
an array representing the different buttons. Can be an array of strings like
["val1", "val2"]
or an array of objects[{ value: "val1", label: "Value 1" }, { value: "val2", label: "Value 2" }]
.- Example:
`["option1", "option2"]`
- Example: