Method: Primer::Alpha::ActionMenu::Group#with_heading

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

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

Heading text rendered above the list of items.

Parameters:

  • system_arguments (Hash)

    The arguments accepted by <%= link_to_component(Primer::Alpha::ActionMenu::Heading) %>.


13
14
15
# File 'app/components/primer/alpha/action_menu/group.rb', line 13

def with_heading(**system_arguments, &block)
  super(component_klass: Primer::Alpha::ActionMenu::Heading, **system_arguments, &block)
end