# `ShadcnUI.Components.Forms.Label`
[🔗](https://github.com/pcharbon70/shadcn_ui/blob/main/lib/shadcn_ui/components/forms/label.ex#L1)

Native label text with a protected target and explicit requirement indicators.

# `label`

Renders a native label associated with one explicit control ID.
## Attributes

* `id` (`:string`) (required)
* `for` (`:string`) (required)
* `required` (`:boolean`) - Defaults to `false`.
* `optional` (`:boolean`) - Defaults to `false`.
* `class` (`:any`) - Defaults to `nil`.
* Global attributes are accepted.
## Slots

* `inner_block` (required)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
