Sha256: b0367a2e48fc982a94848468a5f625002091690147580c8fcaf08f09b0a5fb53
Contents?: true
Size: 828 Bytes
Versions: 33
Compression:
Stored size: 828 Bytes
Contents
<% subject_id = SecureRandom.hex %> <%= render(Primer::Alpha::SelectPanel.new( data: { interaction_subject: subject_id }, select_variant: :single, fetch_strategy: :local, dynamic_label: true, dynamic_label_prefix: "Item", dynamic_aria_label_prefix: "Selected item", open_on_load: open_on_load )) do |panel| %> <% panel.with_show_button { "Choose item" } %> <% panel.with_subtitle do %> Choose the item you want to select <% end %> <% panel.with_item(label: "Item 1") %> <% panel.with_item(label: "Item 2") %> <% panel.with_item(label: "Item 3") %> <% panel.with_item(label: "Item 4") %> <% panel.with_footer(show_divider: true) do %> I'm a footer! <% end %> <% end %> <%= render partial: "primer/alpha/select_panel_preview/interaction_subject_js", locals: { subject_id: subject_id } %>
Version data entries
33 entries across 33 versions & 2 rubygems