Giter VIP home page Giter VIP logo

floating-ui-x's Introduction

floating-ui-x

Implementation of @floating-ui primitives for platforms other than React.

Goals

  1. keep api as close as possible to the original package, so that we can leverage their existent documentation site. Exceptions can be made if platform has a fundamental different way of doing things.
  2. make it good enough to request integration into floating-ui monorepo, because I don't deserve nor want the burden of maintaining this alone.

No TypeScript?! ๐Ÿ˜ฑ๐Ÿ˜ฑ

I'm adding this chapter in the unlikely event of this getting shared somewhere. Why aren't you writing this in TypeScript in 2022?! Are you mad mate?!:

No, I just prioritize features over types for the free time I will spend on this. I've worked with TypeScript but I'm not a TypeScript jedi neither a fanboy. As such, I prefer to spend my free effort on keeping feature-parity with the original package than in finding solutions for the type hieroglyphs problems that come from consumers of "platform X" package. The cost does not yet justifies the means, because typescript is very time consuming for library developers1, can be a barrier for contributors and this is just a personal project for now.

If you reading this and want TypeScript so badly, please note that I accept the corresponding type definitions files, and even kickstart this with some a few ones โ€” See i'm not that stubborn. Happy to take any improvements on those. Here's some guidelines on how to do it take some of the points with a pinch of salt. But as i've said before, if someone contributes with a cool feature that works but can't make tsc happy I will ship it anyways.

Motivation

Because poppers/tooltips/fly-outs are something I'll use in every web project during my dev career, independently of the tech stack, and popper.js (now floating-ui) is the best position engine out there.

Acknowledgements

It started as a fork from allindevelopers/vue-floating-ui#1

Footnotes

  1. https://erock.prose.sh/typescript-terrible-for-library-developers โ†ฉ

floating-ui-x's People

Contributors

renatodeleao avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.