Global styles of your application are sent with the response.
Props
Name of the component to render.
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" />.Make the component non-blocking.
Props to send to the component to render.
Remote source to call the island to render.
Remote islands need
experimental.componentIslands to be 'local+remote' in your nuxt.config.Required to load client components from a remote source.
Slots
Slots can be passed to an island component if declared. Every slot is interactive since the parent component is the one providing it. Some slots are reserved toNuxtIsland for special cases.
#fallback
Specify the content to be rendered before the island loads (if the component is lazy) or if NuxtIsland fails to fetch the component.
Methods
refresh()
Force refetch the server component by refetching it.
Type: () => Promise<void>
Events
@error
Emitted when NuxtIsland fails to fetch the new island.
Parameters:
error(type:unknown) - The error that occurred during fetching.