class Primer::Alpha::Dropdown

They’re great for instances where you don’t need the full power (and code) of the SelectMenu.
‘Dropdown` is a lightweight context menu for housing navigation and actions.

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

Parameters:
  • 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

def render?

def render?
  button? && menu?
end