x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<segmented-control> <ul aria-label="File view" role="list" data-view-component="true" class="SegmentedControl--medium SegmentedControl"> <li class="SegmentedControl-item SegmentedControl-item--selected" role="listitem" data-targets="segmented-control.items"> <button data-action="click:segmented-control#select" aria-current="true" type="button" data-view-component="true" class="Button--invisible Button--medium Button Button--invisible-noVisuals"> <span class="Button-content"> <span class="Button-label">Preview</span> </span> </button> </li> <li class="SegmentedControl-item" role="listitem" data-targets="segmented-control.items"> <button data-action="click:segmented-control#select" aria-current="false" type="button" data-view-component="true" class="Button--invisible Button--medium Button Button--invisible-noVisuals"> <span class="Button-content"> <span class="Button-label">Raw</span> </span> </button> </li> <li class="SegmentedControl-item" role="listitem" data-targets="segmented-control.items"> <button data-action="click:segmented-control#select" aria-current="false" type="button" data-view-component="true" class="Button--invisible Button--medium Button Button--invisible-noVisuals"> <span class="Button-content"> <span class="Button-label">Blame</span> </span> </button> </li> </ul></segmented-control>
No notes provided.
1
2
3
4
5
6
7
8
if icon == :none icon = hide_labels ? :zap : nilendrender(Primer::Alpha::SegmentedControl.new("aria-label": "File view", full_width: full_width, hide_labels: hide_labels, size: size)) do |component| component.with_item(label: "Preview", icon: icon, selected: true) component.with_item(label: "Raw", icon: icon) component.with_item(label: "Blame", icon: icon)end
Param | Description | Input |
---|---|---|
— |
|
|
— |
|
|
— |
|
|
— |
|