Options
Everything init() and the Nuni component accept.
import { init } from "@nuniapp/widget"
const instance = init({
project: "nuni_...", // required
})
instance.destroy()
PropType
projectstring
Your public project ID. Commit it; it is not a secret.
Type
stringgetPageKey?(url: URL) => string
Which URLs share comments. Defaults to the normalized path.
Type
(url: URL) => stringconvexUrl?string
Self-hosting or local development: the Convex deployment URL.
Type
stringconvexSiteUrl?string
Self-hosting or local development: the Convex HTTP actions URL.
Type
stringappUrl?string
Self-hosting or local development: where the dashboard is served.
Type
string<Nuni /> from @nuniapp/react takes the same props.
Keyboard
| Key | Action |
|---|---|
| C | Start or stop adding a comment |
| Esc | Cancel, close the comment, then the panel |
| Cmd + Enter | Post the comment |