Method: Primer::Alpha::ActionMenu::List#with_item

Defined in:
app/components/primer/alpha/action_menu/list.rb

#with_item(**system_arguments, &block) ⇒ Object

[View source]

32
33
34
35
36
37
38
# File 'app/components/primer/alpha/action_menu/list.rb', line 32

def with_item(**system_arguments, &block)
  @items << {
    type: :item,
    kwargs: organize_arguments(**system_arguments),
    block: block
  }
end