Modal.d.ts 878 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(): JSX.Element | null;
  13. }
  14. export interface ModalContentProps extends React.HTMLProps<HTMLDivElement> {
  15. }
  16. export declare class ModalContent extends React.Component<ModalContentProps> {
  17. render(): JSX.Element;
  18. }
  19. export interface ModalFooterProps extends React.HTMLProps<HTMLDivElement> {
  20. }
  21. export declare class ModalFooter extends React.Component<ModalFooterProps> {
  22. render(): JSX.Element;
  23. }
  24. export interface ModalHeaderProps extends React.HTMLProps<HTMLDivElement> {
  25. }
  26. export declare class ModalHeader extends React.Component<ModalHeaderProps> {
  27. render(): JSX.Element;
  28. }