Skip to content

1681-engine / react / ChoiceDialog

Function: ChoiceDialog() ​

ts
function ChoiceDialog(__namedParameters): Element | null;

Defined in: src/react/ChoiceDialog.tsx:13

The open askChoice, if any: mounted once at the UI's root. A row per option, the first that can be taken picked; Enter takes the picked one, Esc or a press outside cancels.

Parameters ​

ParameterType
__namedParameters{ width?: number; }
__namedParameters.width?number

Returns ​

Element | null

Released under the MIT License.