Sha256: 548f6c200da43d9928bc937bd6fddb40d1ff199f8c51fce6d116f5c1d8146ddb

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 KB

Contents

<%= render(Ariadne::BaseComponent.new(tag: @tag, classes: @classes, attributes: @attributes)) do %>
  <div class="ariadne-bg-white" data-comment-component-target="commentComponent">
    <div class="ariadne-hidden sm:ariadne-block">
      <div class="ariadne-border-b ariadne-border-gray-200">
      </div>
    </div>
    <%= ariadne_form_with(url: @url, method: @method, classes: @classes, attributes: @attributes) do |comment_box| %>
      <div class="ariadne-overflow-hidden ariadne-border-x ariadne-border-b ariadne-border-gray-300 ariadne-shadow-sm focus-within:ariadne-border-indigo-500 focus-within:ariadne-ring-1 focus-within:ariadne-ring-indigo-500">
        <%= hidden_field_tag 'message_public', true %>
        <%= render(Ariadne::RichTextAreaComponent.new(name: :bodytext, sr_label: "Select reply type", attributes: { required: true})) %>
        <% comment_box.submit { @submit } %>
      </div>
      <div class="ariadne-mt-2 ariadne-flex ariadne-justify-end">
        <%= submit %>
      </div>
    <% end %>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.13 app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.13-x86_64-linux app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.13-x86_64-darwin app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.13-x64-mingw32 app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.13-x64-mingw-ucrt app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.13-arm64-darwin app/components/ariadne/comment_component.html.erb
ariadne_view_components-0.0.13-aarch64-linux app/components/ariadne/comment_component.html.erb