Using the Web Component. Boxicons includes a Custom Element that makes using icons easy and efficient. To use it, add the boxicons.js file to the page: <script src="https://unpkg.com/boxicons@2.1.4/dist/boxicons.js"></script>. To use an icon, add the box-icon element to the location where the icon should be displayed: