docs(api): add <ClientOnly> to API docs#8400
Conversation
|
|
✅ Deploy Preview for nuxt3-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
|
Thank you @huang-julien it looks great! I would actually set it as top of the list since we want to list in alphabetical order ( |
|
couldn't imagine a better person to write these docs 😊 |
|
thank you ❤️ |
| --- | ||
| # `<ClientOnly>` | ||
|
|
||
| The `<ClientOnly>` component renders its slot only in client-side. To import a component only on the client, register the component in a client-side only plugin. |
There was a problem hiding this comment.
(there seems a type at end of the sentence)
There was a problem hiding this comment.
Instead of the plugin, I assume you meant "within the component". (Alternative to .client components)
There was a problem hiding this comment.
this was retrieved from the guide docs.
Maybe changing to To import a component only on the client, add the .client suffix to the component file name or import it explicitly within the component. might be better ?
|
|
||
| ## Props | ||
|
|
||
| - **placeholderTag** | **fallbackTag**: specify a tag to be rendered server-side. |
There was a problem hiding this comment.
i'll fix this :) thanks !
🔗 Linked issue
❓ Type of change
📚 Description
Hi 👋 this add
<ClientOnly>to the api docs.📝 Checklist