UNPKG

react-long-press-hook

Version:

Unlock the power of long-press interactions with react-press-and-hold! 🚀 This lightweight and highly customizable React hook lets you easily detect and handle long-press events in your applications. Whether you’re looking to enhance your UI with context

14 lines (12 loc) • 330 B
import { defineConfig } from "rollup"; import typescript from "@rollup/plugin-typescript"; export default defineConfig({ input: "src/index.ts", output: { dir: "dist", format: "es", name: "react-long-press-hook", }, external: ["react", "react-dom"], plugins: [typescript({ tsconfig: "tsconfig.json" })], });