download
raw
677 Bytes
import { registerAction, moveAction } from '@use-gesture/core/actions'
import { UserMoveConfig, Handler, EventTypes } from '@use-gesture/core/types'
import { useRecognizers } from './useRecognizers'
/**
* Move hook.
*
* @param {Handler<'move'>} handler - the function fired every time the move gesture updates
* @param {UserMoveConfig} config - the config object including generic options and move options
*/
export function useMove<EventType = EventTypes['move'], Config extends UserMoveConfig = UserMoveConfig>(
handler: Handler<'move', EventType>,
config?: Config
) {
registerAction(moveAction)
return useRecognizers({ move: handler }, config || {}, 'move')
}

Xet Storage Details

Size:
677 Bytes
·
Xet hash:
9cb835e783060cb4598595cc5cde3f3fcc4a74f5320a76d841f05528fa38c3f6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.