Sha256: 29208b293e7266f9e7afc4c92972ff9a4caca7b8924a89141f80339e36be1d5b
Contents?: true
Size: 349 Bytes
Versions: 2
Compression:
Stored size: 349 Bytes
Contents
# frozen_string_literal: true class SolidusAdmin::UI::Toast::Component < SolidusAdmin::BaseComponent SCHEMES = { default: %w[ bg-gray-800 text-white ], error: %w[ bg-red-500 text-white ], } def initialize(text:, icon: nil, scheme: :default) @text = text @icon = icon @scheme = scheme.to_sym end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_admin-0.0.2 | app/components/solidus_admin/ui/toast/component.rb |
solidus_admin-0.0.1 | app/components/solidus_admin/ui/toast/component.rb |