Sha256: 31275d0f380c30c9ee4ea9e914eb2314c95bb0af99f8a836b568dca3c4da791b

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

<%= render(Yattho::Alpha::Dropdown.new) do |component| %>
  <% component.with_button do %>
    Dropdown
  <% end %>

  <% component.with_menu(as: :list, header: "Options") do |menu|
    menu.with_item { "Item 1" }
    menu.with_item { "Item 2" }
    menu.with_item(divider: true)
    menu.with_item { "Item 3" }
    menu.with_item { "Item 4" }
  end %>
<% end %>

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
yattho_view_components-0.0.1 previews/docs/alpha_dropdown_preview/menu_as_list.html.erb
yattho_view_components-0.0.1 previews/docs/dropdown_preview/menu_as_list.html.erb