Class: DaisyUI::Fab

Inherits:
Base
  • Object
show all
Defined in:
lib/daisy_ui/fab.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

#close(**options) ⇒ Object



12
13
14
# File 'lib/daisy_ui/fab.rb', line 12

def close(**options, &)
  div(class: component_classes("fab-close", options:), **options, &)
end

#main_action(**options) ⇒ Object



16
17
18
# File 'lib/daisy_ui/fab.rb', line 16

def main_action(**options, &)
  div(class: component_classes("fab-main-action", options:), **options, &)
end

#view_templateObject



8
9
10
# File 'lib/daisy_ui/fab.rb', line 8

def view_template(&)
  public_send(as, class: classes, **attributes, &)
end