Class: DaisyUI::Hero
Constant Summary
Constants inherited from Base
Base::BOOLS, Base::COLOR_MODIFIERS
Instance Method Summary collapse
Methods inherited from Base
inherited, #initialize, register_modifiers
Constructor Details
This class inherits a constructor from DaisyUI::Base
Instance Method Details
#content(**options) ⇒ Object
14 15 16 |
# File 'lib/daisy_ui/hero.rb', line 14 def content(**, &) div(class: component_classes("hero-content", options:), **, &) end |
#overlay(**options) ⇒ Object
18 19 20 |
# File 'lib/daisy_ui/hero.rb', line 18 def (**, &) div(class: component_classes("hero-overlay", options:), **, &) end |
#view_template ⇒ Object
8 9 10 11 12 |
# File 'lib/daisy_ui/hero.rb', line 8 def view_template public_send(as, class: classes, **attributes) do yield self if block_given? end end |