Class: DaisyUI::Hero

Inherits:
Base
  • Object
show all
Defined in:
lib/daisy_ui/hero.rb

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(**options, &)
  div(class: component_classes("hero-content", options:), **options, &)
end

#overlay(**options) ⇒ Object



18
19
20
# File 'lib/daisy_ui/hero.rb', line 18

def overlay(**options, &)
  div(class: component_classes("hero-overlay", options:), **options, &)
end

#view_templateObject



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