Class: Irelia::Div::Component

Inherits:
Component
  • Object
show all
Includes:
Options::Fixed, Options::Padding, Options::TextFormatting, Options::Width
Defined in:
app/components/irelia/div/component.rb

Instance Method Summary collapse

Methods included from Options::Fixed

included

Methods included from Options::Width

included

Methods included from Options::TextFormatting

included

Methods included from Options::Padding

included

Methods inherited from Component

#add_css_classes, after_initialize, #html_options, inherited, #initialize, run_after_initialize_hooks

Constructor Details

This class inherits a constructor from Irelia::Component

Instance Method Details

#variantsObject



9
10
11
12
13
14
# File 'app/components/irelia/div/component.rb', line 9

def variants
  class_names(
    "irelia-div",
    "irelia-div--default": variant == :default
  )
end