1681-engine / react / ConfirmButtonProps
Interface: ConfirmButtonProps ​
Defined in: src/react/ConfirmButton.tsx:5
Properties ​
armed? ​
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? ​
optional armedLabel?: ReactNode;Defined in: src/react/ConfirmButton.tsx:17
Shown once armed: what the second click will do (default UiLabels.confirmAgain).
armKey? ​
optional armKey?: string;Defined in: src/react/ConfirmButton.tsx:7
What this button arms, among the ones sharing armed (a name, "disband"…).
className? ​
optional className?: string;Defined in: src/react/ConfirmButton.tsx:20
Default 'small'.
disabled? ​
optional disabled?: boolean;Defined in: src/react/ConfirmButton.tsx:21
label ​
label: ReactNode;Defined in: src/react/ConfirmButton.tsx:15
onConfirm ​
onConfirm: () => void;Defined in: src/react/ConfirmButton.tsx:14
Returns ​
void
setArmed? ​
optional setArmed?: (key) => void;Defined in: src/react/ConfirmButton.tsx:13
Parameters ​
| Parameter | Type |
|---|---|
key | string | null |
Returns ​
void
title? ​
optional title?: string;Defined in: src/react/ConfirmButton.tsx:18