Text Input

<.phx_form_for for={%{}} as={:story} :let={f}>
  <.text_input_group form={f} label="Address" field={:address} placeholder="Please type your address"/>
</.phx_form_for>

Your full postal address.

<.phx_form_for for={%{}} as={:story} :let={f}>
  <.text_input_group form={f} label="Address" field={:address} hint="Your full postal address." placeholder="Please type your address"/>
</.phx_form_for>

this field is in error

<.phx_form_for for={%{}} as={:story} :let={f}>
  <% f = %{f | data: %{foo: "bad value"}, errors: [foo: {"this field is in error", []}]} %>
  <.text_input_group form={f} label="Foo field" field={:foo} force_feedback={true}/>
</.phx_form_for>