Sha256: 2bb958aec10631943bc4995116ba5eaeae499c92ec2536f4be8c55e699ebc4f7

Contents?: true

Size: 700 Bytes

Versions: 8

Compression:

Stored size: 700 Bytes

Contents

<% subject_id = SecureRandom.hex %>

<%= render(Primer::Alpha::SelectPanel.new(
  data: { interaction_subject: subject_id },
  select_variant: :single,
  fetch_strategy: :local,
  open_on_load: open_on_load
)) do |panel| %>
  <% panel.with_show_button { "Panel" } %>
  <% panel.with_item(label: "GitHub", href: "https://github.com") %>
  <% panel.with_item(label: "Microsoft", href: "https://microsoft.com", active: true) %>
  <% panel.with_item(label: "Primer", href: "https://primer.style") %>
  <% panel.with_item(label: "Catalyst", href: "https://catalyst.rocks") %>
<% end %>

<%= render partial: "primer/alpha/select_panel_preview/interaction_subject_js", locals: { subject_id: subject_id } %>

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.49.0 previews/primer/alpha/select_panel_preview/list_of_links.html.erb
primer_view_components-0.35.0 previews/primer/alpha/select_panel_preview/list_of_links.html.erb
openproject-primer_view_components-0.48.2 previews/primer/alpha/select_panel_preview/list_of_links.html.erb
openproject-primer_view_components-0.48.1 previews/primer/alpha/select_panel_preview/list_of_links.html.erb
openproject-primer_view_components-0.48.0 previews/primer/alpha/select_panel_preview/list_of_links.html.erb
openproject-primer_view_components-0.47.1 previews/primer/alpha/select_panel_preview/list_of_links.html.erb
openproject-primer_view_components-0.47.0 previews/primer/alpha/select_panel_preview/list_of_links.html.erb
primer_view_components-0.34.0 previews/primer/alpha/select_panel_preview/list_of_links.html.erb