Class: Protos::Modal::CloseButton

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/modal/close_button.rb

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#view_template(&block) ⇒ Object

DOCS: A close button for a modal



8
9
10
11
12
# File 'lib/protos/modal/close_button.rb', line 8

def view_template(&block)
  form(method: :dialog, class: css[:form]) do
    button(**attrs, &block)
  end
end