Previews

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
render(
Primer::Alpha::ActionList.new(
role: role,
scheme: scheme,
show_dividers: show_dividers
)
) do |component|
component.with_heading(title: "Action List")
component.with_item(label: "Item one", href: "/") do |item|
item.with_leading_visual_icon(icon: :gear)
end
component.with_divider
component.with_item(label: "Item two", href: "/") do |item|
item.with_leading_visual_icon(icon: :star)
end
component.with_item(label: "Item three", href: "/") do |item|
item.with_leading_visual_icon(icon: :heart)
end
component.with_divider
component.with_item(label: "Item four", href: "/") do |item|
item.with_leading_visual_icon(icon: :bug)
end
end