status_dot(status = :neutral, color: nil) # :ok, :warn, :bad, :neutral
status_pill(label, status: :ok, dot: true) # :ok, :bad, :neutral, :accent, :warn
counter(number)
badge(text)
status_dot (:ok, :warn, :bad, :neutral, or color: for a project colour) sits before a status word in lists; never alone. status_pill shows one record's state in a header (:ok, :bad, :neutral, :accent, :warn). counter is the number behind a tab or option, with the locale's thousands separator. badge is a "+N" on a button.
Autorizada
Pendente
Cancelada
Substituída
Autorizada
Cancelada
Substituída
Ativa
1,204
+3
<%= stack(gap: "12px") do %>
<%= cluster(gap: "16px") do %>
<span class="tr-cluster" style="gap: 7px"><%= status_dot :ok %>Autorizada</span>
<span class="tr-cluster" style="gap: 7px"><%= status_dot :warn %>Pendente</span>
<span class="tr-cluster" style="gap: 7px"><%= status_dot :bad %>Cancelada</span>
<span class="tr-cluster" style="gap: 7px"><%= status_dot %>Substituída</span>
<% end %>
<%= cluster do %>
<%= status_pill "Autorizada" %>
<%= status_pill "Cancelada", status: :bad %>
<%= status_pill "Substituída", status: :neutral, dot: false %>
<%= status_pill "Ativa", status: :accent %>
<%= counter 1204 %>
<%= badge "+3" %>
<% end %>
<% end %>