Blank Form Frame

Renders a minimal centred layout. Useful for pages with one card and some content, such as ‘Login’ and ‘Create Account’.

Examples

Read more Read less
<.blank_form_frame>
  <.simple_form for={@user} title="Example form">
    <.stack space="3xl">
      <.input name="Name" value="" label="Foo" />
      <.input name="Email" value="" label="Bar" />
    </.stack>
    <:actions>
      <.submit>Save</.submit>
      <.button type="cancel">Cancel</.button>
    </:actions>
  </.simple_form>
</.blank_form_frame>
<.blank_form_frame id="blank-form-frame-single-default">
  <.simple_form for={%{id: "example"}} actions_layout="stack">
    <.input name="Name" value="" label="Foo" />
    <.input name="Email" value="" label="Bar" />
    <:actions>
      <.submit>Save</.submit>
      <.button type="cancel">Cancel</.button>
    </:actions>
  </.simple_form>
</.blank_form_frame>