Method: Primer::Beta::NavList#with_item

Defined in:
app/components/primer/beta/nav_list.rb

#with_item(component_klass: Primer::Beta::NavList::Item, **system_arguments, &block) ⇒ Object

Adds an item to the list.

Parameters:

  • component_klass (Class) (defaults to: Primer::Beta::NavList::Item)

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

  • system_arguments (Hash)

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

[View source]

5
6
# File 'app/components/primer/beta/nav_list.rb', line 5

def with_item(component_klass: Primer::Beta::NavList::Item, **system_arguments, &block)
end