The personal finance app for everyone (by everyone)
Ruby
<%= container do %>
<% if icon && (icon_position != :right) %>
<%= helpers.icon(icon, size: size, color: icon_color, custom: icon_custom, class: icon_classes) %>
<% end %>
<% unless icon_only? %>
<span class="min-w-0 truncate"><%= text %></span>
<% end %>
<% if icon && icon_position == :right %>
<%= helpers.icon(icon, size: size, color: icon_color, custom: icon_custom) %>
<% end %>
<% end %>