mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
* Use icon helper for all-the-things * Pass size and color to the icon from buttonish components directly
12 lines
318 B
Text
12 lines
318 B
Text
<% if variant == :divider %>
|
|
<hr class="border-tertiary my-1">
|
|
<% else %>
|
|
<div class="px-1">
|
|
<%= wrapper do %>
|
|
<% if icon %>
|
|
<%= helpers.icon(icon, color: destructive? ? :destructive : :default) %>
|
|
<% end %>
|
|
<%= tag.span(text, class: text_classes) %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|