3.2.3 • Published 6 months ago

@types/react-hint v3.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-hint

Summary

This package contains type definitions for react-hint (https://github.com/slmgc/react-hint).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-hint.

index.d.ts

// Type definitions for react-hint 3.2
// Project: https://github.com/slmgc/react-hint
// Definitions by: Lucas Ghizoni <https://github.com/lucasghizoni>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as React from "react";

export interface ReactHintProps {
    attribute?: string;
    autoPosition?: boolean;
    className?: string;
    delay?: number | { show: number, hide: number };
    events?: boolean | { click: boolean, focus: boolean, hover: boolean };
    onRenderContent?: (target: HTMLElement, content: any) => React.ReactNode;
    persist?: boolean;
    position?: 'top' | 'left' | 'right' | 'bottom';
    ref?(ref: React.ComponentClass<ReactHintProps, any>): void;
}

export default function ReactHintFactory(react: typeof React): React.ComponentClass<ReactHintProps, any>;

Additional Details

  • Last updated: Thu, 28 Oct 2021 12:01:36 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Lucas Ghizoni.