React Sticky Portal
JSON →react-stick is a React component library designed to facilitate the 'sticking' of an absolutely positioned React node (often a tooltip, dropdown, or modal) to a dynamically positioned anchor element. It achieves this by rendering the 'stuck' node in a React Portal, typically as a direct child of the `body` element, ensuring it's not affected by the anchor's parent overflow or styling. The current stable version is `5.0.7`, with releases appearing to be semantically versioned and somewhat regular, addressing bug fixes and minor enhancements. A key differentiator is its focus on robust positioning logic, including automatic flipping based on available viewport space, and its recent migration to TypeScript for improved developer experience and type safety. It requires React and ReactDOM `>=16.8.0`.
Traffic · last 30 days ↓37% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany