Add support for limiting visible selected item labels in SelectMenu and InputMenu
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.9k
- Forks
- 1.1k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 57
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the SelectMenu and InputMenu component entry points and inspect how selected labels are currently rendered. Define the maxSelectedLabels behavior and the slot or render-function customization for the summary, then verify that both components show the customized count when the selection exceeds the limit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100