Previews

1
2
3
4
5
6
7
8
9
render(Primer::Alpha::UnderlineNav.new(label: label, tag: tag, align: align)) do |component|
Array.new(number_of_panels.to_i || 3) do |i|
component.with_tab(href: "#", selected: i.zero?) do |tab|
tab.with_icon(icon: :star)
tab.with_text { "Item #{i + 1}" }
tab.with_counter(count: (i + 1) * 5)
end
end
end