@dxos/react-ui-list
    Preparing search index...

    Type Alias OrderedListRootProps<T>

    OrderedListRootProps: Pick<
        NextRootProps,
        "columns"
        | "virtual"
        | "size"
        | "loopFocus",
    > & {
        children: (props: { items: readonly T[] }) => ReactNode;
        dragPreview?: "clone" | ((item: T) => ReactNode);
        getId?: (item: T) => string;
        getLabel?: (item: T) => string;
        items: readonly T[];
        onMove?: (fromIndex: number, toIndex: number) => void;
        readonly?: boolean;
    } & OrderedListSelection

    Type Parameters

    • T

    Type declaration

    • children: (props: { items: readonly T[] }) => ReactNode
    • OptionaldragPreview?: "clone" | ((item: T) => ReactNode)

      The native drag preview. By default a DragPreview chip labelled by getLabel (or the row's ItemText); a renderer's content is drawn in the chip instead; 'clone' snapshots the row.

    • OptionalgetId?: (item: T) => string

      Stable id per item; a pragmatic-dnd round trip serialises the payload, so identity cannot be by reference. Defaults to the item's own string id, else its index.

    • OptionalgetLabel?: (item: T) => string

      The row's text for typeahead and the default drag preview; the preview falls back to the row's ItemText.

    • items: readonly T[]
    • OptionalonMove?: (fromIndex: number, toIndex: number) => void

      Called with (fromIndex, toIndex) after a pointer drop or a keyboard move.

    • Optionalreadonly?: boolean