Source

admin-bro-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
}
SoftwareBrothers

Proudly built and maintained by SoftwareBrothers

Software House with a passion for both JavaScript and TypeScript.

See what we do See what we believe in

Proudly built and maintained by

SoftwareBrothers