ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[Feature Request]:Support for slot content in <ui5-cb-item> to enable custom rendering of combobox items

Open vijftienster opened this issue 6 months ago • 2 comments

Feature Request Description

Currently, the <ui5-cb-item> component used inside <ui5-combobox> does not support custom slot content. It only accepts a text attribute for display. This makes it difficult or impossible to render more complex item structures such as icons, images, or multi-line entries within the combobox dropdown.

This limitation restricts the flexibility of the combobox component compared to other SAP UI5 Web Components like <ui5-list> or <ui5-select>, which allow full customization of their item contents via slots.

Proposed Solution

I would like to propose supporting slotted content in <ui5-cb-item>, so that users can provide custom HTML/content inside each item:

<ui5-combobox>
    <ui5-cb-item>
        <span role="img" aria-label="Flag">🇩🇪</span> Germany
    </ui5-cb-item>
</ui5-combobox>

### Proposed Alternatives

_No response_

### Organization

_No response_

### Additional Context

_No response_

### Priority

None

### Privacy Policy

- [x] I’m not disclosing any internal or sensitive information.

vijftienster avatar Jun 13 '25 14:06 vijftienster

Hello @SAP/ui5-webcomponents-topic-rl , please take a look at this feature request.

dimovpetar avatar Jun 16 '25 09:06 dimovpetar

There is already an internal BLI for such feature: FIORITECHP1-32507

hristop avatar Jun 17 '25 11:06 hristop