Sha256: b796d8625d6a29f39e0600a1e5ba7d197ecf334a2e7aa290472107fe89051216

Contents?: true

Size: 399 Bytes

Versions: 7

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

# @component <%= component_registry_id.inspect %>
class <%= File.join(*[namespaced_path, file_path].compact).classify %>::ComponentPreview < ViewComponent::Preview
  include SolidusAdmin::Preview

  def overview
    render_with_template
  end

  <%= preview_playground_yard_tags %>
  def playground<%= preview_signature %>
    <%= preview_playground_body %>
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 lib/generators/solidus_admin/component/templates/component_preview.rb.tt
solidus_admin-0.3.1 lib/generators/solidus_admin/component/templates/component_preview.rb.tt
solidus_admin-0.3.0 lib/generators/solidus_admin/component/templates/component_preview.rb.tt
solidus_admin-0.2.0 lib/generators/solidus_admin/component/templates/component_preview.rb.tt
solidus_admin-0.1.0 lib/generators/solidus_admin/component/templates/component_preview.rb.tt
solidus_admin-0.0.2 lib/generators/solidus_admin/component/templates/component_preview.rb.tt
solidus_admin-0.0.1 lib/generators/solidus_admin/component/templates/component_preview.rb.tt