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.0.0.beta.7 app/components/lookbook/logo/component.rb
lookbook-2.0.0.beta.6 app/components/lookbook/logo/component.rb
lookbook-2.0.0.beta.5 app/components/lookbook/logo/component.rb
lookbook-2.0.0.beta.4 app/components/lookbook/logo/component.rb