mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
* Use icon helper for all-the-things * Pass size and color to the icon from buttonish components directly
13 lines
320 B
Text
13 lines
320 B
Text
<%= container do %>
|
|
<% if icon && (icon_position != :right) %>
|
|
<%= helpers.icon(icon, size: size, color: icon_color) %>
|
|
<% end %>
|
|
|
|
<% unless icon_only? %>
|
|
<%= text %>
|
|
<% end %>
|
|
|
|
<% if icon && icon_position == :right %>
|
|
<%= helpers.icon(icon, size: size, color: icon_color) %>
|
|
<% end %>
|
|
<% end %>
|