DocSpace-client/packages/components/modal-dialog
2023-07-31 17:18:05 +02:00
..
components Web: Components: Remove unnecessary defaultProps expanding 2023-07-11 13:57:11 +02:00
handlers Web:Components:ModalDialog: add available use modal dialog as container for people or room selector 2022-09-06 16:54:15 +03:00
views Merge branch 'master' into develop 2023-07-18 19:26:32 +03:00
index.js Merge branch 'master' into develop 2023-07-18 19:26:32 +03:00
modal-dialog.stories.js Web: Components: fixed dark theme display 2023-05-23 19:21:51 +05:00
modal-dialog.test.js
README.md
styled-modal-dialog.js Web: Client: Components: Move id to top div of Scrollbar component. Add class to wrapper element of Scrollbar 2023-07-31 17:18:05 +02:00

ModalDialog

ModalDialog is used for displaying modal dialogs

Usage

import ModalDialog from "@docspace/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