DocSpace-client/packages/shared/components/modal-dialog
2024-07-10 16:03:28 +03:00
..
sub-components Fixed Bug 67697 - The Share modal window behaves differently from similar windows in the desktop client if the document is opened in a separate window 2024-07-10 16:03:28 +03:00
index.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
ModalDialog.constants.ts Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
ModalDialog.enums.ts Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
ModalDialog.stories.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
ModalDialog.styled.ts Client: Login: DocEditor Remove increasing value for RTL 2024-04-17 10:55:33 +02:00
ModalDialog.tsx Shared:ModalDialog:Added the ability to change the blur value for a modal dialog. 2024-04-11 11:47:59 +03:00
ModalDialog.types.ts Shared:ModalDialog:Added the ability to change the blur value for a modal dialog. 2024-04-11 11:47:59 +03:00
ModalDialog.utils.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
README.md Client: fix wrong import - export for shared components 2024-01-10 11:01:43 +03:00

ModalDialog

ModalDialog is used for displaying modal dialogs

Usage

import { ModalDialog } from "@docspace/shared/components/modal-dialog";
<ModalDialog visible={false} scale={false} displayType="auto" zIndex={310}>
  <ModalDialog.Header>"Change password"</ModalDialog.Header>
  <ModalDialog.Body>
    <div>
      Send the password change instruction to the{" "}
      <a href="mailto:asc@story.book">asc@story.book</a> email address
    </div>
  </ModalDialog.Body>
  <ModalDialog.Footer>
    <Button
      label="Send"
      size="big"
      primary={true}
      onClick={() => alert("It's works!")}
    />
  </ModalDialog.Footer>
</ModalDialog>

Properties

Props Type Required Values Default Description
visible bool - - - Display dialog or not
displayType oneOf - auto, modal, aside auto Display type
scale bool - - - Indicates the side panel has scale
onClose func - - - Will be triggered when a close button is clicked
zIndex number - - 310 CSS z-index
modalBodyPadding string - - 16px 0 CSS padding props for modal body section
asideBodyPadding string - - 16px 0 CSS padding props for aside body section