New Badges components: destination, public, status, teams + container/status

This commit is contained in:
Gabriel Engel
2022-11-23 07:52:59 -03:00
parent c2d72ad309
commit 9d45ab3246
6 changed files with 152 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
<script>
import Tooltip from "../Tooltip.svelte";
import {initials} from '$lib/common';
export let name;
export let thingId;
let id = 'destination' + thingId;
</script>
{#if (name||'').length > 0}
<span class="badge rounded uppercase text-xs " id={id}>
{initials(name)}
</span>
<Tooltip triggeredBy="#{id}" placement="right">{name}</Tooltip>
{/if}