Component API
Clear controls if your signature input displays a 'clear' button; which is used to clear the signature input. This is useful if a mistake was made during the signature input process.
Download adds a button to the signature input that allows the user to download the signature as an image.
Error adds an error state to the signature input. Useful for form validation.
isDisabled disables the signature input and makes it non-interactive.
themeColor defines the color of the signature input accents. This defaults to #1976d2
to align with the default Material UI theme colors.
strokeWidth defines the width of the signature stroke. This defaults to 2(px).
onChange is a callback function that is called when the signature input is changed. It returns the signature data as a File
object.
height defines the pixel height of the signature input. This defaults to 150(px).
width defines the pixel width of the signature input. This defaults to 450(px).
Note š
This also defines the size of the output file/image, to ensure a responsive signature input which can output a consistent size file/image for storage purposes.