floating-ui-svelte icon indicating copy to clipboard operation
floating-ui-svelte copied to clipboard

Add: FloatingList component

Open endigo9740 opened this issue 1 year ago • 2 comments

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 avatar May 23 '24 00:05 endigo9740

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 avatar Aug 15 '24 13:08 edisonLzy

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

endigo9740 avatar Aug 15 '24 14:08 endigo9740