Class: Protos::Alert::Icon

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/alert/icon.rb

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#view_templateObject

DOCS: Icon for the alert, usually showing at the top left corner aligned to the text



9
10
11
# File 'lib/protos/alert/icon.rb', line 9

def view_template(&)
  div(**attrs, &)
end