Previews

1
2
3
4
5
6
7
8
render(Primer::Alpha::TabPanels.new(label: "label", align: align)) do |component|
Array.new(number_of_panels&.to_i || 3) do |i|
component.with_tab(selected: i.zero?, id: "tab-#{i + 1}") do |tab|
tab.with_panel { "Panel #{i + 1}" }
tab.with_text { "Tab #{i + 1}" }
end
end
end