Dashboard sipadu mbip
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Modal.d.ts 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import * as React from 'react';
  2. import ModalBody from './ModalBody';
  3. import ModalDialog from './ModalDialog';
  4. import ModalFooter from './ModalFooter';
  5. import ModalHeader from './ModalHeader';
  6. import ModalTitle from './ModalTitle';
  7. import { BsPrefixComponent, TransitionCallbacks } from './helpers';
  8. export interface ModalProps extends TransitionCallbacks {
  9. size?: 'sm' | 'lg' | 'xl';
  10. centered?: boolean;
  11. backdrop?: 'static' | boolean;
  12. backdropClassName?: string;
  13. keyboard?: boolean;
  14. animation?: boolean;
  15. dialogClassName?: string;
  16. dialogAs?: React.ElementType;
  17. autoFocus?: boolean;
  18. enforceFocus?: boolean;
  19. restoreFocus?: boolean;
  20. show?: boolean;
  21. onShow?: () => void;
  22. onHide?: () => void;
  23. container?: any;
  24. scrollable?: boolean;
  25. onEscapeKeyDown?: () => void;
  26. }
  27. declare class Modal<
  28. As extends React.ElementType = 'div'
  29. > extends BsPrefixComponent<As, ModalProps> {
  30. static Body: typeof ModalBody;
  31. static Header: typeof ModalHeader;
  32. static Title: typeof ModalTitle;
  33. static Footer: typeof ModalFooter;
  34. static Dialog: typeof ModalDialog;
  35. }
  36. export default Modal;