Sha256: 58ba24fc6ee7f5c38f850b3646fa85deefed8241f0915ca83b7cc778a5f129ca

Contents?: true

Size: 731 Bytes

Versions: 2

Compression:

Stored size: 731 Bytes

Contents

<div
  class="
    bg-white
    rounded-lg
    shadow-sm
    border
    border-gray-100
    flex-col
    justify-start
    items-start
    gap-6
    inline-flex
    w-full
    py-6
  "
  data-controller="<%= stimulus_id %>"
>
  <% if @title %>
    <h2 class="mt-0 px-6 w-full">
      <span class="body-title"><%= @title %></span>
      <%= render component('ui/toggletip').new(text: @title_hint, position: :left) if @title_hint %>
    </h2>
  <% end %>

  <% if content&.present? %>
    <div class="px-6 w-full flex flex-col gap-6">
      <%= content %>
    </div>
  <% end %>

  <% if action? %>
    <div class="flex gap-2 items-center border-t border-gray-100 px-6 pt-6 w-full">
      <%= action %>
    </div>
  <% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_admin-0.0.2 app/components/solidus_admin/ui/panel/component.html.erb
solidus_admin-0.0.1 app/components/solidus_admin/ui/panel/component.html.erb