Skip to content

[Autocomplete] Add multiple section groups on autocompletion list #4180

@lucasfrosty

Description

@lucasfrosty

Feature request summary

The OptionList component provides a way to group options into multiple sections, as shown on the screenshot above:

Screenshot Screen Shot 2021-05-06 at 11 14 17 AM

However our current Autocomplete implementation is focused on single sections instead, with the possibility of using a listTitle prop to add a title to that single section that is created.

The request is to create the same idea of multiple sections that OptionList has, but in the Autocomplete component as well.

Since Autocomplete actually uses OptionList it wouldn't be too hard to implement, however the big challenge sits around how to make the options and listTitle props API update in a way that won't be a breaking change. I have some ideas but first i'd like to know some thoughts on the UX side and then, if we get a 👍 , we can discuss the API implementation and i'd happily start the implementation of this feature.

Thanks!

cc @luanpy

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions