Sha256: 3052c8db50e849469fc28e073b1d9a60482a1895443786867bd9f296b76dddd9

Contents?: true

Size: 507 Bytes

Versions: 4

Compression:

Stored size: 507 Bytes

Contents

<% 
  options = [
    { label: 'United States', value: 'United States' },
    { label: 'Canada', value: 'Canada' },
    { label: 'Pakistan', value: 'Pakistan' },
  ]

%>

<%= pb_rails("dropdown", props: {options: options}) do %>
    <%= pb_rails("dropdown/dropdown_trigger") %>
    <%= pb_rails("dropdown/dropdown_container") do %>
        <% options.each do |option| %>
            <%= pb_rails("dropdown/dropdown_option", props: {option: option, padding:"sm"}) %>
        <% end %>
    <% end %>
<% end %>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
playbook_ui_docs-13.27.0 app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.html.erb
playbook_ui-13.27.0 app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.html.erb
playbook_ui_docs-13.26.0.pre.alpha.jasoncypretpatch12820 app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.html.erb
playbook_ui-13.26.0.pre.alpha.jasoncypretpatch12820 app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.html.erb