UNPKG

@bytedance/mona-client-web

Version:

web for mona

19 lines (18 loc) 812 B
import { BaseProps, HoverProps, Touch } from '@bytedance/mona'; export declare function useHandlers(props: BaseProps<Touch> & HoverProps): { id?: string; style?: React.CSSProperties; hidden?: boolean; animation?: any; hoverStopPropagation?: boolean; onClick: (e: React.MouseEvent) => void; onTouchStart: (e: React.TouchEvent) => void; onTouchEnd: (e: React.TouchEvent) => void; onTouchMove: (e: React.TouchEvent) => void; onTouchCancel: (e: React.TouchEvent) => void; onTransitionEnd: (e: React.TransitionEvent) => void; onAnimationStart: (e: React.AnimationEvent) => void; onAnimationIteration: (e: React.AnimationEvent) => void; onAnimationEnd: (e: React.AnimationEvent) => void; handleClassName: (name?: string | string[]) => string | undefined; };