Sha256: b15018c96d0fe55a43c074cd56eb6e01f5535c1766d59ffd1d08e0e05a28a955

Contents?: true

Size: 325 Bytes

Versions: 2

Compression:

Stored size: 325 Bytes

Contents

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

  <% component.with_menu(header: "Options") do |menu|
    menu.with_item(tag: :button) { "Item 1" }
    menu.with_item(classes: "custom-class") { "Item 2" }
    menu.with_item { "Item 3" }
  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/customizing_menu_items.html.erb
yattho_view_components-0.0.1 previews/docs/dropdown_preview/customizing_menu_items.html.erb