Nuxt
Tegaki ships a Nuxt module (tegaki/nuxt) that wires up the Vue adapter for both SSR and client rendering, and auto-imports <TegakiRenderer> as a global component.
Installation
Section titled “Installation”npm install tegaki pnpm add tegaki yarn add tegaki bun add tegaki Register the module
Section titled “Register the module”That’s it. The module adds tegaki to build.transpile so Nuxt’s Vite and Nitro bundlers can process the Vue single-file component that ships in source form, and registers <TegakiRenderer> as a global component.
Basic example
Section titled “Basic example”The page server-renders the full handwriting markup (canvas, overlay, sentinel) on the first request; the engine hydrates and starts animating on mount.
Controlled time
Section titled “Controlled time”Module options
Section titled “Module options”Pass options via the tegaki key in nuxt.config.ts:
| Option | Type | Default | Description |
|---|---|---|---|
autoImport | boolean | true | Register <TegakiRenderer> as a global component |
prefix | string | "" | Prefix prepended to the component name (e.g. "Tegaki" → <TegakiTegakiRenderer>) |
If you disable autoImport, you can still import the component manually:
Example app
Section titled “Example app”A runnable example lives at examples/nuxt/ in the repo. Clone and run:
<TegakiRenderer> accepts all TegakiEngineOptions as props. See the Vue guide for the full prop surface and effects examples.