floating-ui-svelte
floating-ui-svelte copied to clipboard
Add: FloatingList component
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
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);
@edisonLzy is there some context here we need to be aware of?