# Label > Accessible form label component for input association. Source: https://shellui.dev/docs/v0.4/components/form/label The Label component provides accessible labels for form inputs with proper association and styling. ## Installation ```bash shellui add label ``` ## Usage ### Basic ```razor
``` ### With Input Association ```razor
``` ### With Checkbox ```razor
@code { private bool acceptTerms = false; } ``` ### With Switch ```razor
@code { private bool notificationsEnabled = false; } ``` ### Required Field Indicator ```razor
``` ## API Reference | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `For` | `string` | `""` | Associates label with an input via `id` | | `ChildContent` | `RenderFragment` | `null` | Label text content | ## Accessibility - Uses semantic `