A set of options which each perform an Action.
| Property | Type | Required | Description |
|---|---|---|---|
control | String | No | Specify a particular control to use to represent the layout. If the control is unknown, it will be ignored. |
margin | Size | No | The vertical margin to apply after this component. Defaults to md. |
options | Array<DecisionLayout.Option> | Yes | Array of options. |
| String | No | Title for the decision block.
|
type | String | Yes | It must be decision. |
An option is a single entry in the decision that the user can choose.
| Property | Type | Required | Description |
|---|---|---|---|
action | Action | Yes | The action to perform when selected. |
description | String | No | A user-facing description. |
disabled | Boolean | No | If true, user interaction is disabled. Defaults to false. |
icon | Icon | No | An icon to represent the option. |
image | ImageLayout | No | An image to represent the option. |
| String | No | An optional identifier to be used in custom renderers.
⚠️ Experimental - This may be changed in the future without notice. |
title | String | Yes | A user-facing title. |