ionic-team / stencil

A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
https://stenciljs.com
Other
12.52k stars 782 forks source link

Scoped slots #2901

Closed pierrebaronqumu closed 3 months ago

pierrebaronqumu commented 3 years ago

I'm submitting a:

[ ] bug report [x] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Other information:

I would like to request the ability to do scoped slots like in Vue (https://vuejs.org/v2/guide/components-slots.html#Scoped-Slots) in StencilJS.

Several frameworks allow for it in different ways (Scoped slots in VueJS, Actions in https://github.github.io/catalyst/guide/actions/, ...) It would be good to have this feature in StencilJS too.

Why

This can help us provide headless components, in the same way than https://headlessui.dev/

splitinfinities commented 3 years ago

Hey great ask! I'm going to tag this with Request for Comments. If anybody would like to pile on so we can get stronger community signal, that'd be awesome!

christian-bromann commented 3 months ago

@pierrebaronqumu thanks for raising the issue.

This is definitely a nice feature, however the Stencil team decided not to move forward with it at this point.