Modal.d.ts 902 B

12345678910111213141516171819202122232425262728
  1. import * as React from 'react';
  2. export interface ModalProps extends React.HTMLProps<HTMLDivElement> {
  3. }
  4. export declare class Modal extends React.Component<ModalProps> {
  5. state: {
  6. isOpen: boolean;
  7. };
  8. open(): void;
  9. close(): void;
  10. show(): void;
  11. hide(): void;
  12. render(): React.JSX.Element | null;
  13. }
  14. export interface ModalContentProps extends React.HTMLProps<HTMLDivElement> {
  15. }
  16. export declare class ModalContent extends React.Component<ModalContentProps> {
  17. render(): React.JSX.Element;
  18. }
  19. export interface ModalFooterProps extends React.HTMLProps<HTMLDivElement> {
  20. }
  21. export declare class ModalFooter extends React.Component<ModalFooterProps> {
  22. render(): React.JSX.Element;
  23. }
  24. export interface ModalHeaderProps extends React.HTMLProps<HTMLDivElement> {
  25. }
  26. export declare class ModalHeader extends React.Component<ModalHeaderProps> {
  27. render(): React.JSX.Element;
  28. }