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 4cf36e2e74eace09e9ea3da63259a9861dbfd9ed
4 changes: 3 additions & 1 deletion text/0000-targeted-slots.md
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ If `Component` can be a unnamed Targetet Slot, then you can think about a unname

```svelte
<!-- Parent.svelte -->
<svelte:component this="Child"/>
<svelte:component this={Child}/>
```

```svelte
Expand All @@ -680,6 +680,8 @@ If `Component` can be a unnamed Targetet Slot, then you can think about a unname

I have no idea about the syntax nor destination.

---

In the comments on the Forward Directive proposal, there is a desire to cross-mix attributes (between `Component` and `element`), but that would be even more strange.

This is another oddity that I wrote just for the record.
0