Method: Primer::Beta::NavList::Heading#call

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

#callObject

[View source]

23
24
25
26
27
28
29
30
31
32
# File 'app/components/primer/beta/nav_list/heading.rb', line 23

def call
  render(
    Primer::BaseComponent.new(
      tag: :"h#{heading_level}",
      id: id,
      classes: "ActionListHeader",
      **system_arguments
    ).with_content(title)
  )
end