Sha256: de36099e1ecb07edccc975d24b455e3975027a9a32d3de32148551e1c6e492ce

Contents?: true

Size: 705 Bytes

Versions: 24

Compression:

Stored size: 705 Bytes

Contents

<%= render_component_tag class: {
    "icon-left": (icon_position == :left),
    "icon-right": (icon_position == :right),
    "theme-info": (theme == :info),
    "theme-error": (theme == :error),
  } do %>
  <% if icon_name %>
    <div class="message-icon">
      <% if icon_name == :logo %>
        <%= lookbook_render :logo, stroke: 1, size: 10 %>
      <% else %>
        <%= icon icon_name, stroke: 1, size: 10 %>
      <% end %>
    </div>
  <% end %>
  <div class="flex-grow">
    <% if title %>
      <h4 class="message-title">
        <%= title %>
      </h4>
    <% end %>
    <div class="opacity-70">
      <%= lookbook_render :prose, size: :sm, content: content %>
    </div>
  </div>
<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/components/lookbook/message/component.html.erb
lookbook-2.3.3 app/components/lookbook/message/component.html.erb
lookbook-2.3.2 app/components/lookbook/message/component.html.erb
lookbook-2.3.0 app/components/lookbook/message/component.html.erb
lookbook-2.2.2 app/components/lookbook/message/component.html.erb
lookbook-2.2.1 app/components/lookbook/message/component.html.erb
lookbook-2.2.0 app/components/lookbook/message/component.html.erb
lookbook-2.1.1 app/components/lookbook/message/component.html.erb
lookbook-2.1.0 app/components/lookbook/message/component.html.erb
lookbook-2.0.5 app/components/lookbook/message/component.html.erb
lookbook-2.0.4 app/components/lookbook/message/component.html.erb
lookbook-2.0.3 app/components/lookbook/message/component.html.erb
lookbook-2.0.2 app/components/lookbook/message/component.html.erb
lookbook-2.0.1 app/components/lookbook/message/component.html.erb
lookbook-2.0.0 app/components/lookbook/message/component.html.erb
lookbook-2.0.0.rc.3 app/components/lookbook/message/component.html.erb
lookbook-2.0.0.rc.2 app/components/lookbook/message/component.html.erb
lookbook-2.0.0.rc.1 app/components/lookbook/message/component.html.erb
lookbook-2.0.0.beta.9 app/components/lookbook/message/component.html.erb
lookbook-2.0.0.beta.8 app/components/lookbook/message/component.html.erb