{"library":"react-sticky","type":"library","category":null,"description":"`react-sticky` is a JavaScript library designed to implement sticky UI elements within React applications. It provides a robust, programmatically controlled solution for scenarios where native CSS `position: sticky` falls short, particularly regarding older browser support (like IE11) or specific layout complexities (e.g., table elements). The current stable version, 6.0.3, was a significant redesign, transitioning to a higher-order component (HOC) pattern combined with a render prop API, which offers developers fine-grained control over the sticky behavior. It requires `react` and `react-dom` versions 15.3 or higher. While no explicit release cadence is stated, major version updates have historically aligned with significant React ecosystem changes. Its key differentiator is providing a flexible, JavaScript-driven approach when CSS alternatives are not viable, allowing custom logic and rendering based on the element's sticky state. This approach provides a fallback for environments where modern CSS features are not fully supported or when more dynamic, JavaScript-controlled sticky behavior is required beyond what pure CSS offers.","language":"javascript","status":"active","version":"6.0.3","tags":["javascript","react-component","React","Sticky"],"install":[{"cmd":"npm install react-sticky","imports":["import { StickyContainer } from 'react-sticky'","import { Sticky } from 'react-sticky'","<Sticky>{({ style, isSticky }) => <div style={style}>...</div>}</Sticky>"]},{"cmd":"yarn add react-sticky","imports":[]},{"cmd":"pnpm add react-sticky","imports":[]}],"homepage":null,"github":"https://github.com/captivationsoftware/react-sticky","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-sticky","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/react-sticky/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}