Previews

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Sets default href to `a`, to ensure it's keyboard interactive and proper markup
if tag == :a && href.nil?
href = "#"
end
render(Primer::Beta::Button.new(
scheme: scheme,
size: size,
block: block,
id: id,
align_content: align_content,
tag: tag,
disabled: disabled,
inactive: inactive,
label_wrap: label_wrap,
href: href
)) do |_c|
"Button"
end