Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<div data-view-component="true" class="FormControl">
<label data-view-component="true" class="FormControl-label">
Best character
</label> <segmented-control>
<ul aria-label="Best character" 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">Han Solo</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">Luke Skywalker</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">Leia Organa</span>
</span>
</button>
</li>
</ul>
</segmented-control>
</div>
1
2
3
4
5
6
7
8
9
<%= render(Primer::Alpha::FormControl.new(**system_arguments)) do |component| %>
<% component.with_input do |input_arguments| %>
<%= render(Primer::Alpha::SegmentedControl.new("aria-label": "Best character", **input_arguments)) do |seg| %>
<% seg.with_item(label: "Han Solo", selected: true) %>
<% seg.with_item(label: "Luke Skywalker") %>
<% seg.with_item(label: "Leia Organa") %>
<% end %>
<% end %>
<% end %>

No assets to display.