Sha256: 8d144e4915f52725833053c8377dfa9d1f6180a889813f846e84a78ee684aead

Contents?: true

Size: 566 Bytes

Versions: 4

Compression:

Stored size: 566 Bytes

Contents

<% base_classes = "border border border-2 rounded-lg p-4 w-full"

variant_classes =
  case @variant
  when "success"
    "bg-green-100 border-green-500 text-green-700"
  when "warning"
    "bg-yellow-100 border-yellow-500 text-yellow-700"
  when "danger"
    "bg-red-100 border-red-500 text-red-700"
  else
    "bg-blue-100 border-blue-500 text-blue-700"
  end

tailwind_classes = "#{base_classes} #{variant_classes}" %>

<div role="alert" class="<%= tailwind_classes %>">

  <h3 class="font-semibold text-lg"><%= @title %></h3>
  <p><%= @description %></p>

</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
railwind-0.1.26 lib/railwind/generators/templates/callout/_callout_component.html.erb
railwind-0.1.25 lib/railwind/generators/templates/callout/_callout_component.html.erb
railwind-0.1.24 lib/railwind/generators/templates/callout/_callout_component.html.erb
railwind-0.1.23 lib/railwind/generators/templates/callout/_callout_component.html.erb