Class: Protos::Modal::CloseButton
- Defined in:
- lib/protos/modal/close_button.rb
Instance Method Summary collapse
-
#view_template(&block) ⇒ Object
DOCS: A close button for a modal.
Methods inherited from Component
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 (**attrs, &block) end end |