<script>
    export let value;
</script>

{#if value}
    <div class="d-inline-flex">
        <span class="color border border-2" style="background:{value}" />
        {value}
    </div>
{/if}

<style>
    .color {
        width: 18px;
        height: 18px;
        display: inline-block;
        position: relative;
        top: 3px;
    }
</style>
