-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(there seems a type at end of the sentence)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which one ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of the plugin, I assume you meant "within the component". (Alternative to .client
components)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(default missing)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll fix this :) thanks !
π Linked issue
β Type of change
π Description
Hi π this add
<ClientOnly>
to the api docs.π Checklist