Class: Uistiti::Alpha::Flex

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/uistiti/alpha/flex.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(direction:, gap: nil, justify_content: nil, align_items: nil, html_options: {}) ⇒ Flex

Returns a new instance of Flex.



8
9
10
11
12
13
14
15
16
# File 'app/components/uistiti/alpha/flex.rb', line 8

def initialize(direction: , gap: nil, justify_content: nil, align_items: nil, html_options: {})
  super()
  
  @direction = direction        
  @justify_content = justify_content        
  @align_items = align_items        
  @gap = gap
  @html_options = html_options        
end

Instance Attribute Details

#align_itemsObject (readonly)

Returns the value of attribute align_items.



7
8
9
# File 'app/components/uistiti/alpha/flex.rb', line 7

def align_items
  @align_items
end

#directionObject (readonly)

Returns the value of attribute direction.



7
8
9
# File 'app/components/uistiti/alpha/flex.rb', line 7

def direction
  @direction
end

#gapObject (readonly)

Returns the value of attribute gap.



7
8
9
# File 'app/components/uistiti/alpha/flex.rb', line 7

def gap
  @gap
end

#html_optionsObject (readonly)

Returns the value of attribute html_options.



7
8
9
# File 'app/components/uistiti/alpha/flex.rb', line 7

def html_options
  @html_options
end

#justify_contentObject (readonly)

Returns the value of attribute justify_content.



7
8
9
# File 'app/components/uistiti/alpha/flex.rb', line 7

def justify_content
  @justify_content
end