Installation
Basic usage
Import the component and styles, then render with minimal props:{{ to open the field menu and insert fields.
Load an existing document
Most templates start from an existing document:Add field types
Distinguish between owner-filled and signer-filled fields:'owner' when no fieldType is specified.
Add preset block content
If a field should insert a predefined structure (for example, a table), addpresetContent on a block field:
presetContent applies only to block fields. Inline fields ignore it.
presetContent.jsonis recommended when you need the most reliable preservation of structure, semantics, and editor-compatible styling.- With
presetContent.html, include required attributes and inline styles explicitly so the HTML parser can map them into node attributes.
Color-code fields in the editor
Import the optional CSS to visually distinguish field types:Add the field list sidebar
Show all template fields in a sidebar:Handle field changes
Track when fields are inserted, updated, or deleted:onFieldsChange callback receives the complete list of fields in the template whenever they change. Each field includes its fieldType.
Export the template
Use a ref to programmatically export:TypeScript support
Full TypeScript definitions are included:Next steps
Configuration Options
Learn about custom components, field creation, and advanced features

