Class: Irelia::Navbar::Separator::Component

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

Instance Method Summary collapse

Instance Method Details

#callObject



11
12
13
# File 'app/components/irelia/navbar/separator/component.rb', line 11

def call
  (:div, content, html_options)
end

#variantsObject



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

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