Inputs

A wrapper for Phoenix.HTML.Form.html.inputs_for/3


Additionally, adds the generated form instance that is returned by inputs_for/3 into the context, making it available to any child input.


# Public API

Name Description Type Values Default
form The parent form.

It should either be a Phoenix.HTML.Form emitted by form_for or an atom.

:form
for An atom or string representing the field related to the child inputs.

:any
opts Extra options for inputs_for/1.

See Phoenix.Component.inputs_for/1 for the available options.

:keyword []