Open
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Describe the Feature Request
To get better DX with libraries built with Stencil, it might be interesting to have a “React” way of using component slots.
As no IDE lets you know which slots are available, this could be very useful.
Describe the Use Case
Acutal:
import { ScpComponent } from '@scope/react"
function SomeComponent() {
return (
<ScpComponent>
<div slot="some-slot">
content
</div>
default slot
</ScpComponent>
);
}
expected:
import { ScpComponent } from '@scope/react"
function SomeComponent() {
return (
<ScpComponent>
<ScpComponent.SomeSlot>
content
</ScpComponent.SomeSlot>
default slot
</ScpComponent>
);
}
Describe Preferred Solution
No response
Describe Alternatives
No response
Related Code
No response
Additional Information
No response