Docs

Cinder UI

Forms.field_label

Server-rendered

Wraps field labels so shared spacing and invalid-state styling remain consistent across controls. Inside field/1, provide it via the :label slot when you need richer label content than a single label/1.

Grouped field label

Used across the dashboard.
  <.field_label>
  <.label for="workspace_name">Workspace name</.label>
  <span class="text-muted-foreground text-xs">Used across the dashboard.</span>
</.field_label>

Field label in context

Shown in team switchers.
  <.field>
  <:label>
    <.field_label>
      <.label for="workspace_name">Workspace name</.label>
      <span class="text-muted-foreground text-xs">Shown in team switchers.</span>
    </.field_label>
  </:label>
  <.input id="workspace_name" name="workspace[name]" value="Cinder UI" />
</.field>

Attributes

Name Type Default Values Global Includes
class :string
rest :global

Slots

Slot Slot Attributes
inner_block Required