PhoenixKitWeb.Components.Core.FormFieldLabel (phoenix_kit v2.16.0)

Copy Markdown View Source

Provides a label UI component for form components.

Summary

Functions

Renders a label.

Functions

label(assigns)

Renders a label.

Markup is <.input>'s label, byte for byte, so a <.select> or <.textarea> label is indistinguishable from an <.input> one beside it.

Attributes

  • for (:string) - Defaults to nil.
  • class (:string) - Defaults to nil.
  • required (:boolean) - Renders the red required marker as a sibling span, exactly as <.input> does. Defaults to false.

Slots

  • inner_block (required)