docs: add tip about islands directory (#29913)

This commit is contained in:
RBV1 2024-11-14 12:47:50 +02:00 committed by Daniel Roe
parent 05328d68e4
commit a503b04f58
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -41,6 +41,10 @@ Remote islands need `experimental.componentIslands` to be `'local+remote'` in yo
It is strongly discouraged to enable `dangerouslyLoadClientComponents` as you can't trust a remote server's javascript.
::
::note
By default, component islands are scanned from the `~/components/islands/` directory. So the `~/components/islands/MyIsland.vue` component could be rendered with `<NuxtIsland name="MyIsland" />`.
::
## Slots
Slots can be passed to an island component if declared.