View Source Phoenix.UI.Components.Label (Phoenix UI v0.1.9)
Provides label component.
Link to this section Summary
Functions
Renders label component.
Link to this section Functions
@spec label(Phoenix.LiveView.Socket.assigns()) :: Phoenix.LiveView.Rendered.t()
Renders label component.
examples
Examples
<.label for={@id}>
Name
</.label>
attributes
Attributes
for
(:string
) - Defaults tonil
.- Global attributes are accepted. Arbitrary HTML or phx attributes.
slots
Slots
inner_block
(required)