Sha256: f4d6d77489fe12b56ae7477ed946d81a9039c4e902db511d4dace15f98094aa3

Contents?: true

Size: 874 Bytes

Versions: 3

Compression:

Stored size: 874 Bytes

Contents

<div
  class="
    bg-white
    rounded-lg
    shadow-sm
    border
    border-gray-100
    flex-col
    justify-start
    items-start
    inline-flex
    w-full
    relative
  "
  data-controller="<%= stimulus_id %>"
>
  <% if menus? %>
    <%= render component('ui/dropdown').new(
      size: :s,
      class: "absolute top-0 right-0 m-6",
    ).with_content(safe_join(menus)) %>
  <% end %>

  <% if @title %>
    <%= render_section do %>
      <h2>
        <span class="font-semibold text-base"><%= @title %></span>
        <%= render component("ui/toggletip").new(text: @title_hint) if @title_hint %>
      </h2>
    <% end %>
  <% end %>

  <% sections.each do |section| %>
    <%= section %>
  <% end %>

  <%= render_section { content } if content.present? %>
  <%= render_section { tag.div(action, class: "flex justify-between items-center") } if action? %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/ui/panel/component.html.erb
solidus_admin-0.3.1 app/components/solidus_admin/ui/panel/component.html.erb
solidus_admin-0.3.0 app/components/solidus_admin/ui/panel/component.html.erb