Previews

1
2
3
4
5
6
7
8
9
render(Primer::Alpha::TabNav.new(label: "label")) do |component|
Array.new(number_of_tabs&.to_i || 3) do |i|
component.with_tab(selected: i.zero?, href: "##{i + 1}") do |tab|
tab.with_icon(icon: :star) if with_icons
tab.with_text { "Tab #{i + 1}" }
tab.with_counter(count: 10) if with_counters
end
end
end