UNPKG

react-auto-scroll-container

Version:

ReactAutoScrollContainer is a React component designed to automatically scroll to the bottom when new content is added and the user is already at the container's bottom. This feature is especially handy for real-time or dynamic content updates.

57 lines (56 loc) 1.53 kB
{ "name": "react-auto-scroll-container", "author": "Ruifeng Zhang", "version": "0.2.1", "description": "ReactAutoScrollContainer is a React component designed to automatically scroll to the bottom when new content is added and the user is already at the container's bottom. This feature is especially handy for real-time or dynamic content updates.", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/esm/index.d.ts", "repository": { "type": "git", "url": "git+https://github.com/failury/react-auto-scroll-container.git" }, "peerDependencies": { "react": ">=17", "react-dom": ">=17" }, "files": [ "dist", "LICENSE", "README.md" ], "keywords": [ "react", "typescript", "autoscroll", "scroll" ], "scripts": { "start": "react-scripts start", "build": "yarn build:esm && yarn build:cjs", "build:esm": "tsc", "build:cjs": "tsc --module commonjs --outDir dist/cjs", "test": "react-scripts test", "eject": "react-scripts eject" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "license": "MIT", "devDependencies": { "@testing-library/jest-dom": "^6.1.4", "@testing-library/react": "^14.1.2", "@testing-library/user-event": "^14.5.1", "@types/jest": "^29.5.8", "@types/node": "^20.9.1", "@types/react": "^18.3.12", "@types/react-dom": "^18.2.15", "typescript": "^5.2.2" }, "dependencies": { "tslib": "^2.6.2" } }