class Primer::Alpha::Dropdown
def initialize(overlay: :default, with_caret: false, **system_arguments)
-
system_arguments(Hash) -- <%= link_to_system_arguments_docs %> -
with_caret(Boolean) -- Whether or not a caret should be rendered in the button. -
overlay(Symbol) -- <%= one_of(Primer::Beta::Details::OVERLAY_MAPPINGS.keys) %>
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