TegakiRenderer
The renderer component is available for every supported framework. See the framework guides for import paths.
Import
Section titled “Import”Type: TegakiBundle — Required
The font bundle containing glyph components, metrics, and timing data.
children / text
Section titled “children / text”Type: string
The text to render. Can be passed as children or the text prop.
Type: number | TimeControlProp
Controls animation timing. Pass a number for controlled mode, or an object:
effects
Section titled “effects”Type: TegakiEffectConfigs
Effects configuration:
Style object or string applied to the container. Use fontSize to control the text size.
shaper
Section titled “shaper”Type: boolean — default true
Whether this instance uses the globally-registered harfbuzz shaper. Set to false to opt one renderer out of shaping (e.g. side-by-side comparisons) without unregistering the shaper for the whole process. Has no effect when no shaper is registered. See Text Shaping.
onComplete
Section titled “onComplete”Type: () => void
Callback fired when the animation reaches the end (uncontrolled mode only).
Static methods
Section titled “Static methods”TegakiEngine.registerShaper(factory)
Section titled “TegakiEngine.registerShaper(factory)”Register a shaper factory globally so every engine instance can shape text. Pass the harfbuzzShaper export from tegaki/shaper-harfbuzz, or pass null to unregister and clear the shaper cache.
See Text Shaping for the full setup, bundle requirements, and SSR behavior.
TegakiEngine.registerBundle(bundle)
Section titled “TegakiEngine.registerBundle(bundle)”Register a font bundle so it can be referenced by family name (used by the Web Component adapter and any code that wants to pass a bundle name as a string instead of the bundle object).
Helper functions
Section titled “Helper functions”computeTimeline(text, font)
Section titled “computeTimeline(text, font)”Computes the total animation duration for a given text and font bundle. Useful for controlled time mode.