-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
526b694
commit 51ed242
Showing
4 changed files
with
13 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
## Slots in Svelte | ||
|
||
Svelte manages slots using the [slot special element](https://svelte.dev/docs/special-elements#slot). | ||
Note that this will change when Svelte 5 comes out and brings snippets to the fray. | ||
We support this behavior, while going further. | ||
Svelte 5 manages slots using [Snippets](https://svelte-5-preview.vercel.app/docs/snippets). | ||
|
||
The AgnosUI Svelte slots can be set using: | ||
|
||
- a simple `string` | ||
- a function `(props: Props) => string` | ||
- a Svelte component | ||
- a Svelte snippet | ||
|
||
> Due to technical constraints with Svelte 5, AgnosUI Svelte slot properties cannot be set through a function or Svelte component |