Login (Blazor)

This article demonstrates how to use the Login component. Check also the component guide and API reference.

Login Properties

Name Type Default Description
Name string ‘login’ + index suffix Unique name of the login.
AllowRegister boolean/expression true Is Register button visible.
AllowResetPassword boolean/expression true Is Reset password button visible.
LoginText string ‘Login’ Login button text.
RegisterText string ‘Register’ Register button text.
UserText string ‘Username’ User label text.
UserRequiredText string ‘Username is required’ User requred text.
PasswordText string ‘Password’ Password label text.
PasswordRequiredText string ‘Password is required’ Password requred text.

Login Events

Name Type Default Description
Login event null Login event. Object with Username and Password properties as event argument.
Register event null Register event. No event arguments.
ResetPassword event null ResetPassword event. User name as event argument.

For more info about event actions please visit event actions in our documentation.

Blazor declaration

<RadzenLogin AllowResetPassword="false" ResetPasswordText="Forgot password" Register="@Login0Register">