Sha256: b3e88bcc271d1f5ae417d180d46a354aea984ea2e5c0e4eaf45676be9092b667

Contents?: true

Size: 426 Bytes

Versions: 21

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

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

      def initialize(path:, 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

21 entries across 21 versions & 1 rubygems

Version Path
satis-1.0.66 app/components/satis/breadcrumbs/component.rb