Component props
Required props
string
required
Unique identifier for this signing session
object
required
Document configuration
function
required
Called when document is signed
Optional props
object
Field configuration
object
Download button configuration
object
Submit button configuration
function
Handle download action
function
Monitor state changes
function
Track field changes
function
Called when document fields are found
function
Called when zoom level changes
object
Telemetry configuration. Enabled by default with
source: 'esign' metadata. See Telemetry for details.string
License key for SuperDoc. Passed directly to the underlying SuperDoc instance.
boolean
Disable all interactions
string
CSS class for container
React.CSSProperties
Inline styles for container
string
Height of document viewer (default:
'600px')Types
SubmitData
Data passed toonSubmit:
DownloadData
Data passed toonDownload:
DocumentField
Values injected into document:SignerField
Interactive field definition:SigningState
Current state passed toonStateChange:
AuditEvent
Timestamped interaction log:ViewOptions
Document view options (recommended):LayoutMargins (Deprecated)
SuperDocESignHandle
Ref type for accessing component methods:Ref methods
Access via ref:Available methods
getState()- Returns current SigningStategetAuditTrail()- Returns audit events arrayreset()- Clear all state and start overupdateFieldInDocument()- Update a document field by idsetZoom(percent)- Set zoom level as a percentage (e.g.,150for 150%)getZoom()- Returns current zoom level as a percentage (default:100)
Field components
Default components
The component provides default implementations for all field types. You can import and extend them:Custom component props
All custom field components receive:CSS classes
Target these classes for styling:.superdoc-esign-container- Main wrapper.superdoc-esign-document- Document viewer area.superdoc-esign-controls- Controls section.superdoc-esign-fields- Field container.superdoc-esign-actions- Button container.superdoc-esign-btn- Default buttons

