<%= container do %>
  <% if icon && (icon_position != :right) %>
    <%= helpers.icon(icon, size: size, color: icon_color, 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) %>
  <% end %>
<% end %>
