Method: Primer::Alpha::Dropdown#initialize

Defined in:
app/components/primer/alpha/dropdown.rb

#initialize(overlay: :default, with_caret: false, **system_arguments) ⇒ Dropdown



32
33
34
35
36
37
38
39
40
41
42
# File 'app/components/primer/alpha/dropdown.rb', line 32

def initialize(overlay: :default, with_caret: false, **system_arguments)
  @with_caret = with_caret

  @system_arguments = system_arguments
  @system_arguments[:overlay] = overlay
  @system_arguments[:reset] = true
  @system_arguments[:classes] = class_names(
    @system_arguments[:classes],
    "dropdown"
  )
end