Class: FoxTail::IconComponent

Inherits:
IconBaseComponent show all
Defined in:
app/components/fox_tail/icon_component.rb

Overview

Displays an icon inline

Instance Attribute Summary collapse

Attributes inherited from IconBaseComponent

#name

Attributes inherited from InlineSvgComponent

#path

Attributes inherited from BaseComponent

#html_attributes

Method Summary

Methods inherited from IconBaseComponent

#initialize, #path

Methods inherited from InlineSvgComponent

#call, #initialize

Methods inherited from BaseComponent

classname_merger, #initialize, stimulus_merger, use_stimulus?, #with_html_attributes, #with_html_class

Methods inherited from Base

fox_tail_config

Constructor Details

This class inherits a constructor from FoxTail::IconBaseComponent

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color.



6
7
8
# File 'app/components/fox_tail/icon_component.rb', line 6

def color
  @color
end

#sizeObject (readonly)

Returns the value of attribute size.



6
7
8
# File 'app/components/fox_tail/icon_component.rb', line 6

def size
  @size
end