Type Alias: SelectPrompt
type SelectPrompt = {
key: string;
label: string;
optional?: boolean;
options: SelectPromptOption[];
selected?: string | string[];
style?: SelectPromptStyle;
type: Select;
};
Properties
| Property |
Type |
Description |
key |
string |
A unique identifier for the prompt. This will be used as the key in the response object. |
label |
string |
The label displayed to the user. |
optional? |
boolean |
If true, allows the user to submit the form without entering a value. |
options |
SelectPromptOption[] |
The list of options to display for the prompt. |
selected? |
string | string[] |
The initial selected value for the prompt. |
style? |
SelectPromptStyle |
The style of select prompt to use. Defaults to radio. |
type |
Select |
- |