TIL: You can nest .inputs_for
in Phoenix LiveView forms to make inputs visually coherent.
Note: This is a simplified example.
<.inputs_for :let={profile} field={@form[:profile]}> <Fields.text field={profile[:first_name]} /> <.inputs_for :let={images} field={@form[:images]}> <Fields.avatar field={images[:avatar]} /> </.inputs_for> </.inputs_for>
Top comments (0)