<script lang="ts" context="module">
  let loaded = false;
</script>

<script lang="ts">
  export let name: string;

  if (!loaded) {
    document.head.innerHTML += `<link
      rel="stylesheet"
      href="/vendor/boxicons/css/boxicons.min.css"
    />`;
    loaded = true;
  }
</script>

<i class="bx bx-{name}" />

<style>
  .bx {
    font-size: 115%;
  }
</style>