Adds an item to the list.
Parameters:
The class to use instead of the default <%= link_to_component(Primer::Beta::NavList::Item) %>
These arguments are forwarded to <%= link_to_component(Primer::Beta::NavList::Item) %>, or whatever class is passed as the ‘component_klass` argument.
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