<script>
  import Icon from "$/client/components/Icon.svelte";
</script>

<style>
  box {
    width: 200px;
    height: 100px;
    background-color: var(--color-bg-inverted);
    color: var(--color-text-inverted);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow) var(--color-shadow);
  }
</style>

<p>A simple badge with a number:</p>
<badge>1</badge>

<p>A badge with a tiny icon in it:</p>
<badge><Icon name="inbox" size="18px" width="1px" /></badge>


<p>Top left position with <b>class="top-left"</b>:</p>

<box>
  <b>Top Left</b>
  <badge class="top-left"><Icon name="inbox" size="14px" width="1px" /></badge>
</box>

<p>Bottom left position with <b>class="bottom-left"</b>:</p>
<box>
  <b>Bottom Left</b>
  <badge class="bottom-left"><Icon name="inbox" size="14px" width="1px" /></badge>
</box>

<p>Top right position with <b>class="top-right"</b>:</p>
<box>
  <b>Top Right</b>
  <badge class="top-right"><Icon name="inbox" size="14px" width="1px" /></badge>
</box>

<p>Bottom right position with <b>class="bottom-right"</b>:</p>
<box>
  <b>Bottom Right</b>
  <badge class="bottom-right"><Icon name="inbox" size="14px" width="1px" /></badge>
</box>
