Components without LiveView

Hello,
I was looking over the code generated by phx.gen.auth in my app and I noticed this:

  <.form
    let={f}
    for={@password_changeset}
    action={Routes.user_settings_path(@conn, :update)}
    id="update_password"
  >

Source in phoenix: phoenix/settings_edit.html.heex at master · phoenixframework/phoenix · GitHub

I am confused how this works - I thought this component syntax could only be used within a liveview. I was expecting to see <%= form_for ... %>

The doc page for HTML.Form implies this as well: Phoenix.HTML.Form — Phoenix.HTML v3.2.0

Anyone care to explain? Thanks!

1 Like

Possibly related:

1 Like

Ok, I found it explained here:
https://hexdocs.pm/phoenix/views.html#html-components

Should the Phoenix.HTML docs be updated to include examples with HTML components?