Previews

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
render(Primer::Alpha::TabNav.new(label: "With icons and counters")) do |component|
component.with_tab(href: "#1", selected: true) do |tab|
tab.with_icon(icon: :star)
tab.with_text { "Stars" }
tab.with_counter(count: 10)
end
component.with_tab(href: "#2") do |tab|
tab.with_icon(icon: :heart)
tab.with_text { "Sponsors" }
tab.with_counter(count: 14)
end
component.with_tab(href: "#3") do |tab|
tab.with_icon(icon: :bookmark)
tab.with_text { "Bookmarks" }
tab.with_counter(count: 7)
end
end