UNPKG

react-scroll-into-view

Version:

Simple React element that when clicked scrolls to any element on page

67 lines (66 loc) 1.8 kB
{ "name": "react-scroll-into-view", "version": "2.3.0", "description": "Simple React element that when clicked scrolls to any element on page", "keywords": [ "react", "scroll", "scroll-into-view" ], "homepage": "https://github.com/dominikbulaj/react-scroll-into-view#readme", "bugs": { "url": "https://github.com/dominikbulaj/react-scroll-into-view/issues" }, "license": "MIT", "author": "Dominik Bułaj <dominik@bulaj.com>", "repository": { "type": "git", "url": "git+https://github.com/dominikbulaj/react-scroll-into-view.git" }, "type": "module", "main": "./dist/index.mjs", "module": "./dist/index.mjs", "types": "./dist/index.d.mts", "exports": { ".": { "types": "./dist/index.d.mts", "import": "./dist/index.mjs", "default": "./dist/index.mjs" } }, "scripts": { "build": "tsdown src/index.tsx", "check": "tsc --noEmit", "test": "vitest --browser.headless", "test:ci": "vitest run --browser.headless", "lint": "oxlint src/", "fmt": "oxfmt src/", "fmt:check": "oxfmt --check src/", "test:browser": "vitest" }, "devDependencies": { "@commitlint/cli": "^20.4.1", "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.2", "@types/react": "^18.3.28", "@types/react-dom": "^18.3.7", "@vitejs/plugin-react": "^5.1.3", "@vitest/browser-playwright": "^4.0.18", "husky": "^9.1.7", "oxfmt": "^0.28.0", "oxlint": "^1.43.0", "react": "^18.3.1", "react-dom": "^18.3.1", "tsdown": "^0.20.3", "typescript": "^5.9.3", "vitest-browser-react": "^2.0.5" }, "peerDependencies": { "react": ">=18.0.0", "react-dom": ">=18.0.0" }, "files": [ "dist" ] }