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::Beta::NavList.new) do |list|
list.with_heading(title: "Account settings")
list.with_item(label: "General", href: "/general") do |item|
item.with_leading_visual_icon(icon: :gear)
end
list.with_item(label: "Billing", href: "/billing") do |item|
item.with_leading_visual_icon(icon: :"credit-card")
end
list.with_item(label: "Change password", href: "/change_password") do |item|
item.with_leading_visual_icon(icon: :key)
end
list.with_avatar_item(
src: "https://avatars.githubusercontent.com/u/103004183?v=4",
username: "hulk_smash",
full_name: "Bruce Banner",
full_name_scheme: :inline,
href: "/profile"
)
end