UNPKG

@up-group/react-controls

Version:

We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get

44 lines (43 loc) 1.58 kB
/// <reference types="react" /> import * as React from 'react'; export interface UpContextMenuTriggerProps { id: string; attributes?: object; collect?: () => void; holdToDisplay?: number; renderTag?: any; } export interface UpContextMenuTriggerState { } export declare class UpContextMenuTrigger extends React.PureComponent<UpContextMenuTriggerProps, UpContextMenuTriggerState> { element: HTMLElement; mouseDown: boolean; static defaultProps: { attributes: {}; holdToDisplay: any; renderTag: string; }; handleMouseDown: (event: any) => void; handleMouseUp: (event: any) => void; handleContextClick: (event: any) => void; setElement: (element: any) => void; render(): React.ComponentElement<any, React.Component<any, React.ComponentState>>; } export declare class UpTouchContextMenuTrigger extends React.PureComponent<UpContextMenuTriggerProps, UpContextMenuTriggerState> { element: HTMLElement; mouseDown: boolean; static defaultProps: { attributes: {}; holdToDisplay: number; renderTag: string; }; handleMouseDown: (event: any) => void; handleMouseUp: (event: any) => void; handleTouchstart: (event: any) => void; handleTouchEnd: (event: any) => void; handleContextClick: (event: any) => void; setElement: (element: any) => void; render(): React.ComponentElement<any, React.Component<any, React.ComponentState>>; } declare const _default: typeof UpContextMenuTrigger; export default _default;