Skip to content

onLoadMore prop for react-aria-components ListBox #5493

Open
@Talor-A

Description

@Talor-A

Provide a general summary of the feature here

it appears that useListBox and react-spectrum/ListBox both support an onLoadMore prop, but react-aria-components/ListBox doesn't expose one. it would be great to have this feature.

🤔 Expected Behavior?

    <ListBox
      items={list.items}
      isLoading={list.isLoading}
      onLoadMore={list.loadMore}
    >
      {(item) => <Item key={item.name}>{item.name}</Item>}
    </ListBox>

😯 Current Behavior

no onLoadMore prop exists

💁 Possible Solution

No response

🔦 Context

trying to replace our reliance on downshift with just one library with react-aria. if there's a workaround I can use by creating a custom <ListBox/> component using useListBox and ListBoxContext, that would work here too.

💻 Examples

No response

🧢 Your Company/Team

replit.com

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions