Class: Irelia::SplitScreen::Component

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



10
11
12
13
14
15
16
17
# File 'app/components/irelia/split_screen/component.rb', line 10

def variants
  class_names(
    "irelia-split-screen",
    "irelia-split-screen--default": variant == :default,
    "irelia-split-screen--reverse": variant == :reverse,
    "irelia-split-screen--center": center == true,
  )
end