Badge

Badges are subtle elements to highlight information which are often used in tables and lists as well as in combination with metrics

Updated

Live

<.grid num_items="3" class="gap-x-2 gap-y-2 py-4">
    <.badge class="mx-auto">
      Updated
    </.badge>
    <.badge class="mx-auto">
      <:icon>
        <.icon name="hero-signal" />
      </:icon>
      Live
    </.badge>
  </.grid>

Live

<.badge class="mx-auto">
  <:icon>
    <.icon name="hero-signal" />
  </:icon>
  Live
</.badge>

<.grid num_items="3" class="gap-x-2 gap-y-2 py-4">
    <.badge_delta/>
  </.grid>

21.26%

increase

<.grid num_items="3" class="gap-x-2 gap-y-2 py-4">
    <.badge_delta delta_type="moderate_decrease"> 21.26% </.badge_delta>
    <.badge_delta delta_type="increase"> increase </.badge_delta>
  </.grid>