BitstylesPhoenix.Component.Form.ui_unwrapped_input
You're seeing just the function
ui_unwrapped_input
, go back to BitstylesPhoenix.Component.Form module for more information.
Component for rendering custom inputs together with a label and errors.
Attributes
hidden_label
- Only show the label for screen readers if set totrue
.- All options from above (see top level module doc).
Custom inputs
iex> assigns=%{form: @form_with_errors}
...> render ~H"""
...> <.ui_unwrapped_input form={@form} field={:name} label="Custom">
...> Custom content
...> <input type="text" whatever="foo" />
...> </.ui_unwrapped_input>
...> """
"""
<label for="user_name">
Custom
</label>
Custom content
<input type="text" whatever="foo"/>
<span class="u-fg-warning" phx-feedback-for="user[name]">
is too short
</span>
"""