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

    Variable OrderedListConst

    OrderedList: {
        Content: typeof OrderedListContent;
        Detail: typeof OrderedListDetail;
        DragHandle: typeof OrderedListDragHandle;
        Empty: typeof Listbox.Empty;
        Item: typeof OrderedListItem;
        ItemDescription: typeof Listbox.ItemDescription;
        ItemIcon: typeof Listbox.ItemIcon;
        ItemText: typeof Listbox.ItemText;
        Label: typeof Listbox.Label;
        Root: typeof OrderedListRoot;
        Viewport: typeof Listbox.Viewport;
    } = ...

    Reorderable list on Listbox, sharing its row vocabulary: rows are Items composed from a DragHandle, ItemIcon, ItemText and trailing controls; a collapsible Item adds a caret and a Detail. The ARIA grid keyboard enters a row with ArrowRight, where the DragHandle moves it with Alt+ArrowUp/Down.

    Type declaration

    • Content: typeof OrderedListContent
    • Detail: typeof OrderedListDetail
    • DragHandle: typeof OrderedListDragHandle
    • Empty: typeof Listbox.Empty
    • Item: typeof OrderedListItem
    • ItemDescription: typeof Listbox.ItemDescription
    • ItemIcon: typeof Listbox.ItemIcon
    • ItemText: typeof Listbox.ItemText
    • Label: typeof Listbox.Label
    • Root: typeof OrderedListRoot
    • Viewport: typeof Listbox.Viewport
    <OrderedList.Root items={items} getLabel={(item) => item.label} onMove={move}>
    {({ items }) => (
    <OrderedList.Viewport>
    <OrderedList.Content>
    {items.map((item) => (
    <OrderedList.Item key={item.id} id={item.id}>
    <OrderedList.DragHandle />
    <OrderedList.ItemText />
    </OrderedList.Item>
    ))}
    </OrderedList.Content>
    </OrderedList.Viewport>
    )}
    </OrderedList.Root>