Interface icons24 × 24 grid · 2px padding · 2px stroke 16px 20px 24px ink-muted
Interface icons · Actions
link
- File
ba-link.svg- Weight
- 1 KB
Use it
React
import { Icon } from '@ba-icons/react';
<Icon name="link" />Vue
<script setup>
import { Icon } from '@ba-icons/vue';
</script>
<template>
<Icon name="link" />
</template>Astro
---
import { Icon } from '@ba-icons/astro';
---
<Icon name="link" />HTML
<script src="https://icons.atmosphere.africa/cdn/ba-icons-0.4.0.js" defer></script>
<ba-icon name="link"></ba-icon>SVG
<svg xmlns="http://www.w3.org/2000/svg" class="ba-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M 9.5 14.5 L 14.5 9.5 M 8.1 16.2 L 6.7 17.6 A 4 4 0 0 1 1.1 12 L 6.1 7 A 4 4 0 0 1 11.7 7 M 12.3 17 A 4 4 0 0 0 17.9 17 L 22.9 12 A 4 4 0 0 0 17.3 6.4 L 15.9 7.8"/></svg>From the CDN
Link to the file instead of installing it: for <img>, CSS, emails and docs, with nothing added to your bundle. Served with CORS and cached for an hour.
https://icons.atmosphere.africa/svg/interface-icons/ba-link.svg<img src="https://icons.atmosphere.africa/svg/interface-icons/ba-link.svg" alt="" width="20" height="20">import { iconUrl } from '@ba-icons/core'; // or any adapter
iconUrl('link');
// → https://icons.atmosphere.africa/svg/interface-icons/ba-link.svgAs an <img> it draws in black. To give it the text colour, use it as a mask:
.mark {
background-color: currentColor;
mask: url('https://icons.atmosphere.africa/svg/interface-icons/ba-link.svg') center / contain no-repeat;
}New to the packages? Point your project at the registry first.