Sha256: 81382495e741808b8a64057bdedd2d8129599906bf08612bd9f035a02941817e

Contents?: true

Size: 289 Bytes

Versions: 24

Compression:

Stored size: 289 Bytes

Contents

module Lookbook
  class Logo::Component < Lookbook::BaseComponent
    attr_reader :stroke

    def initialize(size: 4, stroke: 2, **html_attrs)
      @size = size || 4
      @stroke = stroke
      super(**html_attrs)
    end

    def size_rems
      "#{@size * 0.25}rem"
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/components/lookbook/logo/component.rb
lookbook-2.3.3 app/components/lookbook/logo/component.rb
lookbook-2.3.2 app/components/lookbook/logo/component.rb
lookbook-2.3.0 app/components/lookbook/logo/component.rb
lookbook-2.2.2 app/components/lookbook/logo/component.rb
lookbook-2.2.1 app/components/lookbook/logo/component.rb
lookbook-2.2.0 app/components/lookbook/logo/component.rb
lookbook-2.1.1 app/components/lookbook/logo/component.rb
lookbook-2.1.0 app/components/lookbook/logo/component.rb
lookbook-2.0.5 app/components/lookbook/logo/component.rb
lookbook-2.0.4 app/components/lookbook/logo/component.rb
lookbook-2.0.3 app/components/lookbook/logo/component.rb
lookbook-2.0.2 app/components/lookbook/logo/component.rb
lookbook-2.0.1 app/components/lookbook/logo/component.rb
lookbook-2.0.0 app/components/lookbook/logo/component.rb
lookbook-2.0.0.rc.3 app/components/lookbook/logo/component.rb
lookbook-2.0.0.rc.2 app/components/lookbook/logo/component.rb
lookbook-2.0.0.rc.1 app/components/lookbook/logo/component.rb
lookbook-2.0.0.beta.9 app/components/lookbook/logo/component.rb
lookbook-2.0.0.beta.8 app/components/lookbook/logo/component.rb