Skip to content

is the ListBox in the useSelect examples reusable? #2687

Open
@andy-zhou

Description

@andy-zhou

🙋 Documentation Request

In the useSelect examples, the ListBox is given a state prop. This is different than the example in useListBox, which uses useListState internally to build the state.

The docs don't make it clear how the two examples can be shared, just that

The ListBox and Option components are used to show the list of options. They can also be shared with other components like a ComboBox. See useListBox for more examples, including sections and more complex items.

It would be great to update the docs to include this information.

🧢 Your Company/Team

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions