x
1
2
3
4
<button id="button-preview" aria-labelledby="tooltip-ca5f5dc4-9b1c-4fdb-9232-5a3a78dcc673" type="button" data-view-component="true" class="Button Button--iconOnly Button--secondary Button--medium"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-plus Button-visual"> <path d="M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"></path> </svg></button><tool-tip id="tooltip-ca5f5dc4-9b1c-4fdb-9232-5a3a78dcc673" for="button-preview" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Button</tool-tip>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Sets default href to `a`, to ensure it's keyboard interactive and proper markupif tag == :a && href.nil? href = "#"endrender(Primer::Beta::IconButton.new( scheme: scheme, size: size, id: id, tag: tag, disabled: disabled, inactive: inactive, icon: icon, "aria-label": aria_label, show_tooltip: show_tooltip, href: href ))
No notes provided.
Param | Description | Input |
---|---|---|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
|
— |
|
No assets to display.