Class: Irelia::Table::Row::Component

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

Defined Under Namespace

Classes: CellComponent

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ Component

Returns a new instance of Component.



6
7
8
# File 'app/components/irelia/table/row/component.rb', line 6

def initialize(**options)
  super(**options)
end

Instance Method Details

#variantsObject



10
11
12
13
14
15
# File 'app/components/irelia/table/row/component.rb', line 10

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