Sha256: 7572f2f91b742015ae903cd0614b708cf17434829387de886416a3a306c0bac1

Contents?: true

Size: 309 Bytes

Versions: 2

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

##
# Displays an icon inline
class FoxTail::IconComponent < FoxTail::IconBaseComponent
  attr_reader :color, :size

  has_option :color, default: :default
  has_option :size, default: :base

  protected

  def html_class
    classnames theme.apply(:root, self), super
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fox_tail-0.1.1 app/components/fox_tail/icon_component.rb
fox_tail-0.1.0 app/components/fox_tail/icon_component.rb