## Fields

| Name                     | Type         | Description                                                                 | Options                                        |
| ------------------------ | ------------ | --------------------------------------------------------------------------- | ---------------------------------------------- |
| Label                    | Text         | -                                                                           | -                                              |
| Options                  | Key-Value    | Key-value object with options. Must be a JSON string or a state reference to a dictionary. | -                                              |
| Orientation              | Text         | Specify how to lay out the options.                                        | 1. Vertical<br>2. Horizontal                  |
| Primary text             | Color        | -                                                                           | -                                              |
| Accent                   | Color        | -                                                                           | -                                              |
| Custom CSS classes       | Text         | CSS classes, separated by spaces. You can define classes in custom stylesheets. | -                                              |

## Events

**wf-option-change**  
Sent when the selected option changes.

```
def onchange_handler(state, payload):
    # Set the state variable "selected" to the selected radio option
    state["selected"] = payload
```
