Class: Railsboot::Dropdown::DividerComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/railsboot/dropdown/divider_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(**html_attributes) ⇒ DividerComponent

Returns a new instance of DividerComponent.



2
3
4
5
6
7
8
9
# File 'app/components/railsboot/dropdown/divider_component.rb', line 2

def initialize(**html_attributes)
  @html_attributes = html_attributes

  @html_attributes[:class] = class_names(
    "dropdown-divider",
    html_attributes.delete(:class)
  )
end