Sha256: c390c132ce6189fd728a1a810a1960309d46ff6b19456b43c6856785a316f33c

Contents?: true

Size: 445 Bytes

Versions: 5

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

class SolidusAdmin::UI::Table::Toolbar::Component < SolidusAdmin::BaseComponent
  def initialize(**options)
    @options = options
  end

  def call
    tag.div(
      content,
      **@options,
      class: "
        min-h-14 p-2 bg-white border-b border-gray-100
        justify-start items-center gap-2
        visible:flex hidden:hidden
        rounded-t-lg
        #{@options[:class]}
      "
    )
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/ui/table/toolbar/component.rb
solidus_admin-0.3.1 app/components/solidus_admin/ui/table/toolbar/component.rb
solidus_admin-0.3.0 app/components/solidus_admin/ui/table/toolbar/component.rb
solidus_admin-0.2.0 app/components/solidus_admin/ui/table/toolbar/component.rb
solidus_admin-0.1.0 app/components/solidus_admin/ui/table/toolbar/component.rb