Svelte
Tegaki provides a Svelte 5 component with SSR support and reactive prop updates.
Installation
Section titled “Installation”npm install tegaki sveltepnpm add tegaki svelteyarn add tegaki sveltebun add tegaki svelteBasic example
Section titled “Basic example”Controlled time
Section titled “Controlled time”Bind the time to a reactive variable:
Plugins
Section titled “Plugins”Glows, gradients, tapered ends and the rest are plugins. Import the factories from tegaki/svelte and pass the plugins in a list:
Registered plugins can also be named: plugins={['taper', ['glow', { radius: 0.1 }]]}. See Style plugins and Naming plugins. The pressure prop (0 to 1, default 1) sets how much the ink’s width follows the pen’s pressure.
Streaming text
Section titled “Streaming text”The Svelte component accepts all TegakiEngineOptions plus standard HTML div attributes (class, style, etc.).