8000 Targeted Slots - passing and mixing attributes and styles to component, access the slotted element from inside the component by lukaszpolowczyk · Pull Request #68 · sveltejs/rfcs · GitHub
[go: up one dir, main page]

Skip to content
8000

Targeted Slots - passing and mixing attributes and styles to component, access the slotted element from inside the component #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update 0000-targeted-slots.md
  • Loading branch information
lukaszpolowczyk authored Aug 7, 2022
commit e99dc2be3fd95917eb56fb20113fbb1a16279481
7 changes: 6 additions & 1 deletion text/0000-targeted-slots.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,11 @@ I'm writing this just so you know that I have different thoughts.

## Unresolved questions

Someone sees `<svelte:element slot="name"/>` and thinks it's a simple slot. And it is a Targeted Slot.
Therefore, perhaps the name of the `slot` attribute should be changed into another one. But I don't know into which one?

---

The attribute value written in `Parent`, should overwrite the attribute value written in `Child`.
Maybe it should be possible to decide the order of overwriting?

Expand Down Expand Up @@ -550,7 +555,7 @@ This opens up the chance to use the `let:val` syntax in the other direction.

But it is not necessary, because it is possible to pass data through `Child` parameters.

A i tak nie mam pomysłu `whatto:callit`.
And still I have no idea `whatto:callit`.

---

Expand Down
0