S-choice-list Component – No Option to Load Child Content in Specific Choice Item

I’m exploring the s-choice-list web component and noticed that, unlike the Polaris React <ChoiceList /> component, there’s no option to load or render child content conditionally for a specific choice item.

In Polaris React, we can pass child elements to individual choices, such as additional input fields or descriptions, which appear when that choice is selected.

Is this feature currently supported in s-choice-list? If not, is there any recommended workaround to achieve similar behavior using web components?

Appreciate any guidance or suggestions!

Thanks!

1 Like

The previous implementation in Polaris React caused implementation issues and made design updates to the component challenging. We opted for a more restrictive but easier to update user experience.

I really like the example you shared though and will note down this functionality as something we could support in the future.

1 Like

Thanks for the insight! That approach makes sense, and I appreciate you considering the functionality for future support.

1 Like