Sha256: 4ef85f19c09fe0d6c8f78920b6caa96d94214af03a38a7ddbe8af005c17cf073
Contents?: true
Size: 667 Bytes
Versions: 1
Compression:
Stored size: 667 Bytes
Contents
<% base_classes = "px-4 py-2 rounded-full transition hover:opacity-90 hover:shadow border-2 font-semibold" variant_classes = case @variant when "primary" "border-black bg-black text-white" when "secondary" "border-gray-500 bg-gray-500 text-white" when "outline" "border-gray-500 text-gray-500" when "ghost" "border-transparent bg-transparent text-gray-500 hover:bg-gray-200" when "danger" "border-red-500 bg-red-500 text-white" else "bg-blue-500 text-white" end tailwind_classes = "#{base_classes} #{variant_classes}" %> <button type="<%= @type %>" class="<%= tailwind_classes %>"> <%= @text %> <%= content %> </button>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
railwind-0.1.15 | lib/railwind/generators/templates/_button_component.html.erb |