Toggle

1. Demo AstrolToggle

@using Astrol.Component.Basic.Form
@using System.ComponentModel.DataAnnotations
 
<AstrolLabel TItem="Login" For="@nameof(login.Password)" />
@code {
 public class Login { 
 [Display(Name = "Password")]
 public string Password { get; set; }
 }
 private Login login = new Login();
}

Supported parameters

  • TItem (T): Object, model, or entity being represented.
  • Text (string): Text to display in the label. If not defined, it takes the Display name; if not present, it takes the property name to represent.
  • For (string): The label it should focus on when clicked.
  • ChildContent (RenderFragment): Content to include inside the label. If set, it overrides the value of the Text property.
© 2026 AstrolUI v10.0.8
Se ha producido un error no controlado. Recargar 🗙