Skip to content
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

docs: mention NuxtIsland in server only components docs #22685

Merged
merged 5 commits into from
Aug 19, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/2.guide/2.directory-structure/1.components.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ Now you can register server-only components with the `.server` suffix and use th
</template>
```

Server only components uses `<NuxtIsland>` under the hood, meaning that `lazy` prop and `#fallback` slot are both passed down to `<NuxtIsland>`.
huang-julien marked this conversation as resolved.
Show resolved Hide resolved

This also means that server only components are accessible as remote sources and that every features of `<NuxtIsland>` are available on server only components.
huang-julien marked this conversation as resolved.
Show resolved Hide resolved

::alert{type=info}
Slots can be interactive and are wrapped within a `<div>` with `display: contents;`
::
Expand Down