UNPKG

@hffxx/react-overflow-box

Version:
27 lines (26 loc) 937 B
import './Overflowbox.css'; import React, { CSSProperties, Dispatch, ElementType, MutableRefObject, ReactNode, SetStateAction } from 'react'; export interface OverflowboxProps { children?: ReactNode; wrapper?: ElementType; showScrollbar?: boolean; className?: string; disableX?: boolean; disableY?: boolean; disable?: boolean; x?: number; y?: number; setX?: Dispatch<SetStateAction<number>>; setY?: Dispatch<SetStateAction<number>>; width?: number; height?: number; onDragStart?: (...args: any[]) => any; onDragEnd?: (...args: any[]) => any; style?: CSSProperties; reactRef?: MutableRefObject<HTMLElement | null>; cursor?: CSSProperties['cursor']; grabCursor?: CSSProperties['cursor']; disableScrollWheel?: boolean; smoothScrolling?: boolean; } export declare const Overflowbox: (props: OverflowboxProps) => React.JSX.Element;