Hello Edward,
For determining whether a digital / electronic signature is legally valid, I recommend reaching out to a lawyer in the country you wish for the signature to be valid.
What this component allows is getting a digital signature over a piece of text. If you need to obtain that for a document, it currently does not provide an interface for it.
The term "digital signature" for legal purposes is also pretty ambiguous as it can mean "a cryptographically strong digital signature" (what this component could provide you with) or "a digital representation of a handwritten signature", which this component does not help you with.
Even if a digital signature in the cryptographic sense is what's required, there are also probably other legal, non-technical, requirements that are needed for the signature to be accepted. Again, I have ABSOLUTELY NO KNOWLEDGE OF THIS, and am not in any manner or form any kind of expert in legal manners, so you should reach out to a lawyer to understand exactly what you need to do.