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 59d919d57341b97a53ec1dde310e3c84a3a85e09
4 changes: 2 additions & 2 deletions text/0000-targeted-slots.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ Not counting the case of "Styles for the element-child slot", about which in "Un

In **Forward Directive** they propose a complex system of attribute exceptions.
With Targeted Slots, you can freely place attributes in separate named slots.
This will completely replace this complicated exclusion system.
This will completely replace this complicated exceptions system.


```svelte
Expand All @@ -379,7 +379,7 @@ This will completely replace this complicated exclusion system.
<svelte:element targeted:name2 this="div">Foo</svelte:element>
```

This is an example of simple exclusion, by using a separate name.
This is an example of simple exception, by using a separate name.
In one place there is both `click` and `mouseover`, and in another place there is only `click`.


Expand Down
0