x
1
2
3
4
5
6
7
8
9
10
11
<div data-view-component="true" class="Subhead"> <div data-view-component="true" class="Subhead-heading Subhead-heading--large"> A Heading </div> <div data-view-component="true" class="Subhead-description"> A description with actions </div> <div data-view-component="true" class="Subhead-actions"><button type="button" data-view-component="true" class="Button--primary Button--medium Button"> <span class="Button-content"> <span class="Button-label">An action</span> </span> </button> </div></div>
No notes provided.
1
2
3
4
5
6
7
8
9
10
11
12
13
<%= render(Primer::Beta::Subhead.new) do |component| %> <% component.with_heading do %> A Heading <% end %> <% component.with_description do %> A description with actions <% end %> <% component.with_actions do %> <% render(Primer::Beta::Button.new(scheme: :primary)) do %> An action <% end %> <% end %><% end %>
No params configured.