Method: Primer::Alpha::ActionMenu#with_item

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

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

Adds a new item to the list.

Parameters:

  • system_arguments (Hash)

    The arguments accepted by <%= link_to_component(Primer::Alpha::ActionList::Item) %>.

[View source]

274
275
276
# File 'app/components/primer/alpha/action_menu.rb', line 274

def with_item(**system_arguments, &block)
  @list.with_item(**system_arguments, &block)
end