# useLongPress(callback, options)
Detect click / tap and hold event
Parameters
Name | Types | Description |
---|---|---|
callback |
|
Function to call when long press event is detected (click or tap lasts for threshold amount of time or longer) |
options |
|
|
React hook for detecting click (or tap) and hold event. Easy to use, highly customizable options, thoroughly tested.
Detect click / tap and hold event
Name | Types | Description |
---|---|---|
callback |
|
Function to call when long press event is detected (click or tap lasts for threshold amount of time or longer) |
options |
|
|