BitstylesPhoenix.Component.Form.ui_wrapped_input

You're seeing just the function ui_wrapped_input, go back to BitstylesPhoenix.Component.Form module for more information.
Link to this function

ui_wrapped_input(assigns)

View Source

Component for rendering custom wrapped inputs in a label and with errors.

Attributes

  • All options from above (see top level module doc).

    Custom wrapped inputs

iex> assigns=%{form: @form}
...> render ~H"""
...> <.ui_wrapped_input form={@form} field={:name} label="Current name">
...>   <input type="checkbox" id="user_name" whatever="foo" />
...> </.ui_wrapped_input>
...> """
"""
<label for="user_name">
  <input type="checkbox" id="user_name" whatever="foo"/>
  Current name
</label>
"""