Skip to content

1681-engine / react / ConfirmButtonProps

Interface: ConfirmButtonProps ​

Defined in: src/react/ConfirmButton.tsx:5

Properties ​

armed? ​

ts
optional armed?: string | null;

Defined in: src/react/ConfirmButton.tsx:12

Which button of a group is armed now, kept by the parent so arming one disarms the others. Left out, the button keeps its own state.


armedLabel? ​

ts
optional armedLabel?: ReactNode;

Defined in: src/react/ConfirmButton.tsx:17

Shown once armed: what the second click will do (default UiLabels.confirmAgain).


armKey? ​

ts
optional armKey?: string;

Defined in: src/react/ConfirmButton.tsx:7

What this button arms, among the ones sharing armed (a name, "disband"…).


className? ​

ts
optional className?: string;

Defined in: src/react/ConfirmButton.tsx:20

Default 'small'.


disabled? ​

ts
optional disabled?: boolean;

Defined in: src/react/ConfirmButton.tsx:21


label ​

ts
label: ReactNode;

Defined in: src/react/ConfirmButton.tsx:15


onConfirm ​

ts
onConfirm: () => void;

Defined in: src/react/ConfirmButton.tsx:14

Returns ​

void


setArmed? ​

ts
optional setArmed?: (key) => void;

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

Parameters ​

ParameterType
keystring | null

Returns ​

void


title? ​

ts
optional title?: string;

Defined in: src/react/ConfirmButton.tsx:18

Released under the MIT License.