# Label
> AstrolLabel is an essential component in the user interface, designed to provide descriptive information and enhance the understanding of associated elements.
Source page: https://doc.astrolui.com/form/label
## 1. Demo AstrolLabel
```razor
@using Astrol.Component.Basic.Form
@using System.ComponentModel.DataAnnotations
@code {
```
```csharp
public class Login {
public string User { get; set; } = string.Empty;
[Display(Name = "Password")]
public string Password { get; set; } = string.Empty;
}
private Login login = new Login();
}
```
### Supported parameters
- TItem **(T)**, model whose property is described **(required)**.
- For **(string)**, name of the TItem property; it is also used as the label's **for** attribute, so the input must have an **id** equal to that name, e.g. **For="@nameof(Login.Password)"**.
- ForExpression **(Expression>)**, typed alternative to For, e.g. **ForExpression="x => x.Password"**; used only when For is empty.
- Text **(string)**, label text; when not set, the **Name** of the property's **[Display]** attribute is used, or the **property name** if there is none.
- ChildContent **(RenderFragment)**, custom label content; when set, **Text is ignored**.