Previews

1
2
3
4
5
6
7
8
9
10
11
render(Primer::Beta::NavList.new) do |list|
list.with_heading(title: "Repository settings")
list.with_item(label: "Really really long label that may wrap, truncate, or appear as a tooltip", truncate_label: :show_tooltip) do |item|
item.with_leading_visual_icon(icon: :"comment-discussion")
item.with_item(label: "Interaction limits", href: "/interaction-limits", selected_by_ids: :interaction_limits)
item.with_item(label: "Code review limits", href: "/review-limits", selected_by_ids: :code_review_limits)
item.with_item(label: "Reported content", href: "/reported-content", selected_by_ids: :reported_content)
end
end