<%= render(Zui::Card.new(class: "w-full sm:w-[400px] p-8 mx-auto")) do |card| %>
<%= zui_form_with(model: post, url: "/") do |form| %>
<div class="grid grid-cols-1 gap-6">
<div>
<%= form.label :title %>
<%= form.text_field :title, placeholder: "Catchy title! "%>
</div>
<div>
<%= form.label :status %>
<%= form.select :status, collection: Post::STATUSES %>
</div>
<div>
<%= form.submit 'Save', class: "w-full" %>
</div>
</div>
<% end %>
<% end %>