Class: Ui::ButtonComponent
- Inherits:
-
SparkComponents::Component
- Object
- SparkComponents::Component
- Ui::ButtonComponent
- Defined in:
- app/components/spark/ui/button_component.rb
Instance Method Summary collapse
Instance Method Details
#render ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/components/spark/ui/button_component.rb', line 6 def render content_tag(:div, class: join_class("wrapper")) do content_tag(:button, class: base_class) { content_tag(:span) { text } } end end |