Sha256: cda966d97945f8398b065535011f8f583a490ccfe3e71e21381cb5463747d0c1

Contents?: true

Size: 818 Bytes

Versions: 26

Compression:

Stored size: 818 Bytes

Contents

<%= render component_tag(x: {
  data: "snackbar",
  "bind": "root",
  cloak: true
}) do %>
  <div class="snackbar-container">
    <% if icon? %>
      <div class="snackbar-icon" data-role="icon">
        <%= icon %>  
      </div>
    <% end %>
    <div class="snackbar-content" data-role="content">
      <%= content %>
    </div>
    <% if action? %>
      <div class="snackbar-action"
        x-ref="action"
        @click="notification.dismiss"
        data-role="action">
        <%= action %>
      </div>
    <% end %>
    <div
      class="snackbar-dismiss"
      x-ref="dismiss"
      data-role="dismiss">
      <%= coco_button(
        icon: :x,
        size: :sm,
        theme: :blank,
        class: "snackbar-dismiss-button",
        click: "notification.dismiss"
      ) %>
    </div>
  </div>
<% end %>

Version data entries

26 entries across 26 versions & 1 rubygems

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