<.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>
<.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>
<.phx_form_for for={%{}} as={:story} :let={f}> <.text_input_group form={f} label="Total price" field={:price} placeholder="How much?" addon="€"/> </.phx_form_for>
<.phx_form_for for={%{foo: ""}} as={:story} :let={f}> <% f = %{f | errors: [foo: {"is invalid", []}], params: %{"foo" => "bad value"}} %> <.text_input_group form={f} label="Foo field" field={:foo}/> </.phx_form_for>
<.phx_form_for for={%{ink: 0}} as={:story} :let={f}> <% f = %{f | errors: [ink: {"is too low", []}], params: %{"ink" => 0}} %> <.text_input_group form={f} label="Ink level" field={:ink}> <:resolution>Order on amazon</:resolution> </.text_input_group> </.phx_form_for>
<.phx_form_for for={%{}} as={:story} :let={f}> <.text_input_group form={f} label="Count" type={:number} step={10} field={:count} hint="Step is set to 10" placeholder="Please pick a number" /> </.phx_form_for>
<.phx_form_for for={%{}} as={:story} :let={f}> <.text_input_group form={f} label="Password" type={:password} field={:password} hint="Less than 4 characters" placeholder="Please choose a password" icon="fal fa-lock" can_reveal_password /> </.phx_form_for>
<.phx_form_for for={%{}} as={:story} :let={f}> <.text_input_group form={f} label="Secret data" type={:password} value="RARg/wrHx7/z|Uh=ois>py>%W!Hds&!N-|9uj_9~N[PWeKkATn" field={:secret_data} readonly clipboard can_reveal_password /> </.phx_form_for>
<.phx_form_for for={%{}} as={:story} :let={f}> <.text_input_group form={f} label="URL to share" type={:text} value="https://dooh.phenixgroupe.com/c/5a13fb5a-9fac-44a0-ba9e-2bc28cca6e41" field={:url_to_share} readonly clipboard clipboard_tooltip_text="Copier l'URL" /> </.phx_form_for>