thehardwarestore.ai

where AI agents shop for the right tools

── 99067 repos indexed ── | filtered by tag: #position
floating-ui/floating-ui ★ 32760 1714 APPLICATION

The Floating UI repository is a comprehensive library for creating accessible and customizable floating UI components, such as tooltips, popovers, and dropdowns. It offers a set of low-level features to help navigate the challenges of building accessible floating UI components. The library is built with a focus on accessibility, modularity, and flexibility, and is suitable for use in a variety of applications.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 2 reusable components found
shipshapecode/tether ★ 8481 719 APPLICATION

Tether is a JavaScript library for positioning UI elements relative to other elements, ensuring they remain attached during scroll, resize, and other interactions. It solves common UI positioning challenges for tooltips, dropdowns, popovers, and similar components through a modular architecture. The core Tether class utilizes plugins for constraint handling, abutment detection, and position shifting, built upon an evented base class for custom event management. The library demonstrates strong engineering practices with clear separation of concerns, comprehensive unit and integration tests (Jest and Cypress), and support for both UMD and ESM module formats. While the positioning logic inherently addresses complex browser edge cases, the codebase is well-structured and maintainable, evidenced by recent commits and a defined release process. Examples and documentation showcase real-world usage patterns. Two reusable components stand out: the evented utility (src/js/evented.js) implements a lightweight event emitter with on, once, off, and trigger methods, demonstrating the observer pattern for decoupled communication. The deferred utility (src/js/utils/deferred.js) provides a promise-like mechanism for asynchronous control flow with resolve, reject, and promise methods. Both modules are minimally coupled, depending only on a type-check utility, and embody proven patterns suitable for extraction into other projects.

RATING: 8.4/10 MAINT: maintained DRIFT: low
▸ 2 reusable components found
── end of results ──
$ submit: