Class: Irelia::Navbar::Component

Inherits:
Component
  • Object
show all
Defined in:
app/components/irelia/navbar/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



13
14
15
16
17
18
19
# File 'app/components/irelia/navbar/component.rb', line 13

def variants
  class_names(
    "irelia-navbar",
    "irelia-navbar--default": variant == :default,
    "irelia-navbar--full-width": full_width
  )
end