mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
* Use icon helper for all-the-things * Pass size and color to the icon from buttonish components directly
14 lines
320 B
Plaintext
14 lines
320 B
Plaintext
<%= 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 %>
|