ReadonlyallowWhether a browse/import affordance is shown so the user can select an image file from disk.
ReadonlyallowWhether drawing with mouse, touch, or pen is allowed.
ReadonlyallowWhether the user can drop an image into the field.
ReadonlyallowWhether the user can paste an image into the field.
ReadonlyariaAccessible label for the canvas.
Protected ReadonlycanWhether the user can currently draw.
Protected ReadonlycanWhether the user can currently interact with the field.
ReadonlyclearedEmitted when the signature is cleared.
ReadonlydisabledWhether the field is disabled. Also set via CVA setDisabledState.
Protected ReadonlyemptyHint text shown in the empty state, reflecting all enabled input modes.
Protected ReadonlyiconsToolbar icon references exposed to the template.
Protected ReadonlyisEffective disabled state combining the disabled input and CVA state.
ReadonlyisWhether the field has no signature.
ReadonlyisWhether the current value is an image-based signature.
ReadonlyisWhether the current value is a stroke-based signature.
ReadonlymaxMaximum stroke width in pixels. Used for fixed width when pressure is disabled.
ReadonlyminMinimum stroke width in pixels (used when pressure is enabled).
ReadonlypressureWhether to capture and use pointer pressure for variable-width stroke rendering.
ReadonlyreadWhether the field is read-only (displays value but prevents changes).
ReadonlystrokeCSS colour of strokes when drawn and exported.
ReadonlyvalueCurrent signature value. Supports two-way binding via [(value)].
Programmatically open the file browser (requires allowBrowse to be enabled).
Returns whether the current value can be exported in the given format.
'svg' or 'png'.
Clears the signature field, removing all stroke or image data. This action is blocked when the field is disabled or read-only.
Exports the current signature as a PNG data URL. Supported for both stroke-based and image-based signatures.
PNG data URL string, or null when the field is empty.
Exports the current signature as an SVG string. Only supported for stroke-based signatures.
SVG markup string, or null if the current value is not
stroke-based.
Replays the current stroke-based signature animating the strokes in their original drawing order. Does nothing when the current value is image-based or empty.
Signature field component supporting drawn strokes, optional pressure- sensitive capture, and image-based input (paste / drop / browse).
The field integrates with both Angular reactive / template-driven forms (via
ControlValueAccessor) and signal-based two-way binding ([(value)]).Stroke-based signatures are replayable and exportable as SVG or PNG. Image-based signatures are exportable as PNG only.
Example