Sha256: f802c1ca5e35e8180ad582e27daab67f5325064492c4969e5057f304fd783f9f

Contents?: true

Size: 451 Bytes

Versions: 151

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

class Avo::ProfileItemComponent < ViewComponent::Base
  attr_reader :label
  attr_reader :icon
  attr_reader :path
  attr_reader :active
  attr_reader :target

  def initialize(label: nil, icon: nil, path: nil, active: :inclusive, target: nil, title: nil)
    @label = label
    @icon = icon
    @path = path
    @active = active
    @target = target
    @title = title
  end

  def title
    @title || @label
  end
end

Version data entries

151 entries across 151 versions & 1 rubygems

Version Path
avo-2.15.2 app/components/avo/profile_item_component.rb
avo-2.15.2.pre.1 app/components/avo/profile_item_component.rb
avo-2.15.1 app/components/avo/profile_item_component.rb
avo-2.15.0 app/components/avo/profile_item_component.rb
avo-2.14.3.pre.7.polytranslations1 app/components/avo/profile_item_component.rb
avo-2.14.3.pre.6.nosprockets app/components/avo/profile_item_component.rb
avo-2.14.3.pre.5.nosprockets app/components/avo/profile_item_component.rb
avo-2.14.3.pre.4.tosqlfix app/components/avo/profile_item_component.rb
avo-2.14.3.pre.3.jsbundling app/components/avo/profile_item_component.rb
avo-2.14.3.pre.2.tailwindcss app/components/avo/profile_item_component.rb
avo-2.14.3.pre.1.branding app/components/avo/profile_item_component.rb
avo-2.14.2 app/components/avo/profile_item_component.rb
avo-2.14.2.pre.1 app/components/avo/profile_item_component.rb
avo-2.14.1 app/components/avo/profile_item_component.rb
avo-2.14.1.pre.1 app/components/avo/profile_item_component.rb
avo-2.14.0 app/components/avo/profile_item_component.rb
avo-2.13.6.pre.2 app/components/avo/profile_item_component.rb
avo-2.13.6.pre.1 app/components/avo/profile_item_component.rb
avo-2.13.5.pre.2 app/components/avo/profile_item_component.rb
avo-2.13.5.pre.1 app/components/avo/profile_item_component.rb