Replies: 4 comments 2 replies
-
👍
…On Mon, Dec 6, 2021 at 6:12 PM James N ***@***.***> wrote:
Hi,
Amazing work on this library. I am one of the co-authors of Popper v2, and
I created a new project called Floating UI <https://www.floating-ui.com>
as a next-generation evolution of it. You can read the motivation for
creating it here <https://www.floating-ui.com/docs/motivation>.
In summary, it's designed to be an ideal solution for component libraries
like this one because of its super low-level, unopinionated nature. It's
smaller, faster, more predictable, and is tree-shakeable + strongly typed
out of the box. I think you'll enjoy authoring any floating elements using
it!
Cheers
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#490>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJJUH3JD6RFDT5GNTLMS2ZTUPTVJJANCNFSM5JPEWQ7Q>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi @atomiks, hope you would not mind several questions (sorry, I don't have time to go through all docs):
@EmilMalanczak you've worked with popper more than me, so what do you think? Maybe you have some additional questions? |
Beta Was this translation helpful? Give feedback.
-
I've seen announcements about Floating UI on a daily.dev 😄 . I like the API it uses but never thought about using it here. Bundle size would shrink with such change for sure. It doesn't seem to be THAT much hard to migrate but it would be time-consumable.
{
name: 'preventOverflow',
enabled: false,
},
const {
x,
y,
reference,
floating,
middlewareData: {arrow: {x: arrowX, y: arrowY} = {}},
} = useFloating({
middleware: [arrow({element: arrowRef})],
}); Any data we will pass to middlewares there will be later on available under the
In summary, I believe that might be a good change - lib seems similar to popper v3 😄 It might be a good point for 3.5 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answers @atomiks, we will consider migrating. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Amazing work on this library. I am one of the co-authors of Popper v2, and I created a new project called Floating UI as a next-generation evolution of it. You can read the motivation for creating it here.
In summary, it's designed to be an ideal solution for component libraries like this one because of its super low-level, unopinionated nature. It's smaller, faster, more predictable, and is tree-shakeable + strongly typed out of the box. I think you'll enjoy authoring any floating elements using it!
Cheers
Beta Was this translation helpful? Give feedback.
All reactions