Sha256: 9236412536d56dd48553b35adf840b954b693b1ed39469411cd32f7efb6c5868

Contents?: true

Size: 344 Bytes

Versions: 5

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

class SolidusAdmin::UI::Toast::Component < SolidusAdmin::BaseComponent
  SCHEMES = {
    default: %w[
      bg-full-black text-white
    ],
    error: %w[
      bg-red-500 text-white
    ],
  }

  def initialize(text:, icon: nil, scheme: :default)
    @text = text
    @icon = icon
    @scheme = scheme
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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