Source

adminjs-design-system/src/molecules/modal/modal-props.ts

import { ButtonProps, VariantType } from '../..'

/**
 * Props passed to Modal Component
 *
 * @memberof Modal
 * @alias ModalProps
 */
export type ModalProps = {
  /**
   * dialog title
   */
  title?: string
  /**
   * optional subtitle
   */
  subTitle?: string
  /**
   * color variant
   */
  variant?: VariantType;

  /** Modal footer buttons */
  buttons?: Array<ButtonProps>;

  /** Label which is seen above the text */
  label?: string,

  /** Icon near the label */
  icon?: string,

  /** Handler function triggered when overlay is clicked */
  onOverlayClick?: () => any

  /**
   * Function triggered when user clicks close button.
   * If it is given - close button will appear.
   */
  onClose?: () => any
}