<%= container do %> <% if icon && (icon_position != :right) %> <%= helpers.icon(icon, size: size, color: icon_color, class: icon_classes) %> <% end %> <% unless icon_only? %> <%= text %> <% end %> <% if icon && icon_position == :right %> <%= helpers.icon(icon, size: size, color: icon_color) %> <% end %> <% end %>