@page "/customvalidator"

<RadzenText TextStyle="TextStyle.H2" TagName="TagName.H1" class="rz-pt-8">
    CustomValidator
</RadzenText>
<RadzenText TextStyle="TextStyle.Subtitle1" TagName="TagName.P" class="rz-pb-4">
    Demonstration and configuration of the Radzen Blazor <strong>CustomValidator</strong> component.
</RadzenText>

<RadzenText TextStyle="TextStyle.Subtitle2" TagName="TagName.P" class="rz-pb-4">
    In this demo an <strong>Email</strong> input combines <code>RadzenRequiredValidator</code>, <code>RadzenEmailValidator</code>, and <code>RadzenCustomValidator</code> with a custom <code>Validator</code> function that checks if the email already exists in a predefined array (try "mail@example.com"), with a toggle for popup vs inline validation display.
</RadzenText>

<RadzenExample ComponentName="CustomValidator" Example="CustomValidatorConfig" Source="https://github.com/radzenhq/radzen-blazor/blob/master/Radzen.Blazor/RadzenCustomValidator.cs">
    <CustomValidatorConfig />
</RadzenExample>
