Skip to content

1681-engine / react / ModalProps

Interface: ModalProps ​

Defined in: src/react/Modal.tsx:6

Properties ​

actions? ​

ts
optional actions?: ReactNode;

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

Under the scrolling body, never scrolled away: the dialog's buttons.


children ​

ts
children: ReactNode;

Defined in: src/react/Modal.tsx:16


className? ​

ts
optional className?: string;

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


label? ​

ts
optional label?: string;

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


onCancel ​

ts
onCancel: () => void;

Defined in: src/react/Modal.tsx:8

Esc, or a press on the backdrop.

Returns ​

void


onConfirm? ​

ts
optional onConfirm?: () => void;

Defined in: src/react/Modal.tsx:10

Enter (a text field's own Enter included).

Returns ​

void


role? ​

ts
optional role?: "dialog" | "alertdialog";

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


width? ​

ts
optional width?: number;

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

The box's preferred width, px.

Released under the MIT License.