Class: Irelia::Html::Component

Inherits:
Component
  • Object
show all
Defined in:
app/components/irelia/html/component.rb

Instance Method Summary collapse

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



4
5
6
7
8
9
# File 'app/components/irelia/html/component.rb', line 4

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