npm.io
1.2.5 • Published 2 years ago

@types/react-pointable

Licence
MIT
Version
1.2.5
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/react-pointable

Summary

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

Details

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

index.d.ts

import * as React from "react";

export type TouchAction = "auto" | "none" | "pan-x" | "pan-y" | "manipulation";

export interface PointableProps extends React.HTMLAttributes<Element>, React.SVGAttributes<Element> {
    tagName?: keyof ElementTagNameMap | undefined;
    touchAction?: TouchAction | undefined;
    elementRef?(el: HTMLElement | SVGElement): void;
}

export default class Pointable extends React.Component<PointableProps> {
    static defaultProps: {
        tagName: "div";
        touchAction: "auto";
    };
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Stefan Fochler, and Dibyo Majumdar.