Method: Primer::Alpha::ActionList#with_item

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

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

Adds an item to the list.

Parameters:

  • component_klass (Class)

    The class to use instead of the default <%= link_to_component(Primer::Alpha::ActionList::Item) %>

  • system_arguments (Hash)

    These arguments are forwarded to <%= link_to_component(Primer::Alpha::ActionList::Item) %>, or whatever class is passed as the ‘component_klass` argument.

[View source]

5
6
# File 'app/components/primer/alpha/action_list.rb', line 5

def with_item(**system_arguments, &block)
end