Class: Ui::ButtonComponent

Inherits:
SparkComponents::Component
  • Object
show all
Defined in:
app/components/spark/ui/button_component.rb

Instance Method Summary collapse

Instance Method Details

#renderObject



6
7
8
9
10
11
12
13
14
# File 'app/components/spark/ui/button_component.rb', line 6

def render
  (:div, class: join_class("wrapper")) do
    (:button, class: base_class) {
      (:span) {
        text
      }
    }
  end
end