Class: Uistiti::Alpha::FormSubmit

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

Instance Method Summary collapse

Constructor Details

#initialize(form:, text:, color:) ⇒ FormSubmit

Returns a new instance of FormSubmit.



6
7
8
9
10
11
12
# File 'app/components/uistiti/alpha/form_submit.rb', line 6

def initialize(form: ,text: ,color:)
  super()
  
  @form = form  
  @text = text      
  @color = color        
end

Instance Method Details

#classesObject



14
15
16
17
18
19
20
# File 'app/components/uistiti/alpha/form_submit.rb', line 14

def classes
  [ 
    "FormSubmit",
    "Button", 
    "Button--#{@color}"
  ]
end