How to use the hig-vanilla.Modal.AvailableStyles function in hig-vanilla

To help you get started, we’ve selected a few hig-vanilla examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Autodesk / hig / packages / react / src / elements / components / Modal.js View on Github external
/**
   * Ssupports adding any dom content to the body of the modal
   */
  children: PropTypes.node,
  /**
   * Triggers when the modal closes
   */
  onClose: PropTypes.func,
  /**
   * Modal is visible when true
   */
  open: PropTypes.bool,
  /**
   * Style of the modal shell
   */
  style: PropTypes.oneOf(VanillaModal.AvailableStyles),
  /**
   * Title of the modal
   */
  title: PropTypes.string
};

Modal.defaultProps = {
  onClose: () => {}
};
github Autodesk / hig / packages / react / src / adapters / ModalAdapter.js View on Github external
/**
   * Triggers when you click the close button
   */
  onCloseClick: PropTypes.func,
  /**
   * Triggers when you click the overlay behind the modal
   */
  onOverlayClick: PropTypes.func,
  /**
   * Modal is visible when true
   */
  open: PropTypes.bool,
  /**
   * Style of the modal shell
   */
  style: PropTypes.oneOf(VanillaModal.AvailableStyles),
  /**
   * Title of the modal
   */
  title: PropTypes.string
};

ModalAdapter.defaultProps = {
  buttons: []
};