Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: FloatingList component #121

Open
endigo9740 opened this issue May 23, 2024 · 2 comments
Open

Add: FloatingList component #121

endigo9740 opened this issue May 23, 2024 · 2 comments
Labels
feature request Request a new feature to add. help wanted Extra attention is needed
Milestone

Comments

@endigo9740
Copy link
Contributor

endigo9740 commented May 23, 2024

Reference

https://floating-ui.com/docs/FloatingList

Description

Provides the ability to create composable children APIs for list components

Usage

https://floating-ui.com/docs/FloatingList#usage

@endigo9740 endigo9740 added feature request Request a new feature to add. help wanted Extra attention is needed labels May 23, 2024
@endigo9740 endigo9740 added this to the v1.0 milestone May 23, 2024
@edisonLzy
Copy link

https://github.com/floating-ui/floating-ui/blob/406daa0c75bd2223bb14e6bb9851b8f7178c2dfb/packages/react/src/components/FloatingList.tsx#L89

    // Why is it necessary to sort first? 
    // When adding values, the map is sorted in the order in which they are added.
    const nodes = Array.from(newMap.keys()).sort(sortByDocumentPosition);

@endigo9740
Copy link
Contributor Author

@edisonLzy is there some context here we need to be aware of?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request a new feature to add. help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants