x
1
2
3
4
5
6
7
8
<button id="button-preview" href="#" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content"> <span class="Button-label">Comment</span> <span class="Button-visual Button-trailingVisual"> <span class="d-flex" aria-hidden="true"><span title="15" data-view-component="true" class="Counter">15</span></span> <span class="sr-only">(<span title="15" data-view-component="true" class="Counter">15</span>)</span> </span> </span></button>
No notes provided.
1
2
3
4
5
6
7
8
9
10
11
12
<%= render(Primer::Beta::Button.new( scheme: scheme, size: size, block: block, id: id, align_content: align_content, tag: tag, href: '#')) do |component| %> <% component.with_trailing_visual_counter(count: "15") %> Comment<% end %>
Param | Description | Input |
---|---|---|
— |
|
|
— |
|
|
— |
|
|
— |
|