Hi Laerte,
Greetings from Syncfusion.
As per the material design specification, the helper and error text have to start with same left spacing below the input text of SfTextInputLayout for better UI appearance. If you still need to set margin for helper/error text, you can achieve this by adding Environment.NewLine for top margin and empty string before the actual helper/error text for left margin as like the below code snippet:
[C#]:
private void SetMargin(string errorText)
{
MarginUpdatedErrorText = Environment.NewLine + " " + errorText;
} |
We have prepared a sample for your reference and it can be downloaded from the below link.
Please let us know if your requirement is different from this.
Regards,
Rachel.