Label
A text label for form controls.
Installation
dotnet add package Lumeo
One-time app setup (AddLumeo(), CSS & JS) is covered in the
installation guide.
Usage
@using Lumeo <Label />
When to Use
- Labeling form fields such as inputs, selects, checkboxes, and radio buttons
- Improving accessibility by associating labels with their form controls
- Indicating required fields with visual markers alongside label text
API Reference
Label
| Prop | Type | Default | Description |
|---|---|---|---|
| ChildContent | RenderFragment? | null | The label text content. |
| For | string? | null | The id of the form element the label is associated with. |
| Class | string? | null | Additional CSS classes. |
| AdditionalAttributes | Dictionary<string, object>? | null | Additional HTML attributes. |