Sha256: 0936293c78a3e5765772186586a593957cdf09a86d8f68cd0100e791b18a15e4

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

class SolidusAdmin::UI::ThumbnailWithCaption::Component < SolidusAdmin::BaseComponent
  attr_reader :icon, :caption, :detail

  def initialize(icon: "question-line", caption: "", detail: nil)
    @icon = icon
    @caption = caption
    @detail = detail
  end

  def icon_thumbnail
    render component("ui/thumbnail").new(icon:)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/ui/thumbnail_with_caption/component.rb