Previews

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<%= render(Primer::Alpha::TabPanels.new(label: "label")) do |component| %>
<% component.with_tab(selected: true, id: "tab-1") do |tab| %>
<% tab.with_panel { "Panel 1" } %>
<% tab.with_text { "Tab 1" } %>
<% end %>
<% component.with_tab(id: "tab-2") do |tab| %>
<% tab.with_panel { "Panel 2" } %>
<% tab.with_text { "Tab 2" } %>
<% end %>
<% component.with_tab(id: "tab-3") do |tab| %>
<% tab.with_panel { "Panel 3" } %>
<% tab.with_text { "Tab 3" } %>
<% end %>
<% component.with_extra(align: align) do %>
<%= render(Primer::Beta::Button.new) { "Extra Button" } %>
<% end %>
<% end %>