Perform custom validation in Blazor

Validating form data is one of the most common task in any web application. ASP.NET Core offers a set of validation attributes for performing model level data validations. Blazor apps can also make use of the same validation attributes. Some of the validation attributes include [Required], [StringLength], [Range], and [Compare]. At times you want to perform some validation not covered by these attributes. This is when you want to create a custom validation attribute. In this article we will discuss how that can be done.

https://www.binaryintellect.net/articles/14ba5ebd-7d2a-485f-b60c-2e0f6b6375a0.aspx