Collapsible.d.ts 988 B

123456789101112131415161718192021222324252627
  1. import * as React from "react";
  2. export interface CollapsibleProps extends React.HTMLProps<HTMLUListElement> {
  3. }
  4. export declare class Collapsible extends React.Component<CollapsibleProps> {
  5. render(): React.JSX.Element;
  6. }
  7. export interface CollapsBodyProps extends React.HTMLProps<HTMLDivElement> {
  8. }
  9. export declare class CollapsBody extends React.Component<CollapsBodyProps> {
  10. el: HTMLDivElement | null;
  11. render(): React.JSX.Element;
  12. }
  13. export interface CollapsTriggerProps extends React.HTMLProps<HTMLDivElement> {
  14. }
  15. export declare class CollapsTrigger extends React.Component<CollapsTriggerProps> {
  16. state: {
  17. isOpen: boolean;
  18. };
  19. el: HTMLDivElement | null;
  20. componentDidMount(): void;
  21. showHideBody(e: React.MouseEvent<HTMLDivElement>): void;
  22. collapse(e: React.MouseEvent<HTMLDivElement>): void;
  23. findCollapsible(): HTMLUListElement;
  24. expand(e: React.MouseEvent<HTMLDivElement>): void;
  25. isOpen(): boolean;
  26. render(): React.JSX.Element;
  27. }