<%= form_with url: "/submit", local: true, html: {class: "w-full"} do |form| %>
<div class="form-group">
<%= render RailsUi::SimpleEditor::Component.new(
form: form,
field: :body,
preview_id: "editor-preview",
variables: { title: "Title", content: "Content" },
height: "h-96",
data: { custom: "value" }
) %>
</div>
<div class="form-group">
<%= form.submit "Submit", class: "btn btn-primary" %>
</div>
<% end %>