Sha256: b7b780a7ee89693199a460b3f17fb75933c275ee45912371930121e87377a81d

Contents?: true

Size: 429 Bytes

Versions: 22

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

module Satis
  module Breadcrumbs
    class Crumb < ViewComponent::Base
      attr_reader :path, :title, :icon

      def initialize(path: nil, title: nil, icon: nil)
        @path = path
        @title = title
        @icon = icon
      end
    end

    class Component < Satis::ApplicationComponent
      renders_many :crumbs, Crumb
      def initialize
        super
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
satis-2.1.20 app/components/satis/breadcrumbs/component.rb
satis-2.1.19 app/components/satis/breadcrumbs/component.rb