Skip to content

Add support for limiting visible selected item labels in SelectMenu and InputMenu #6759

Description

@fkwww27

Package

v4.x

Description

It would be nice if SelectMenu and InputMenu supported a maxSelectedLabels prop, similar to the one available in PrimeReact's MultiSelect.

When the number of selected items exceeds the limit, the component could display a summary such as 5 items selected instead of listing every selected label.

It would also be useful to provide a slot or render function to customize the summary text, making it possible to display messages like 5 countries selected, 5 users selected, etc., depending on the context.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageAwaiting initial review and prioritization

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions