Sha256: 2feed0f8101341d7be6a65b56777bd1f8df3f8f3052a41c45a10ffa5b22046e5

Contents?: true

Size: 339 Bytes

Versions: 25

Compression:

Stored size: 339 Bytes

Contents

<%= render component_tag(x: {data: "menuButton"}) do %>
  <%= render button do |btn| %>
    <% if icon? %>
      <% btn.with_icon do %>
        <%= icon %>
      <% end %>
    <% end %>
    
    <% if menu? %>
      <% btn.with_dropdown do %>
        <%= menu %>
      <% end %>
    <% end %>

    <%= button_text %>
  <% end %>
<% end %>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.19.7 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.19.6 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.19.5 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.19.4 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.19.3 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.19.2 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.19.1 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.19.0 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.18.8 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.18.7 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.18.0 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.17.7 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.17.6 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.17.5 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.17.4 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.17.3 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.17.2 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.17.1 app/components/coco/buttons/menu_button/menu_button.html.erb
coveragebook_components-0.17.0 app/components/coco/buttons/menu_button/menu_button.html.erb