Interface icons24 × 24 grid · 2px padding · 2px stroke 16px 20px 24px ink-muted
Interface icons · Status & feedback
alert
- File
ba-alert.svg- Weight
- 1 KB
Use it
React
import { Icon } from '@ba-icons/react';
<Icon name="alert" />Vue
<script setup>
import { Icon } from '@ba-icons/vue';
</script>
<template>
<Icon name="alert" />
</template>Astro
---
import { Icon } from '@ba-icons/astro';
---
<Icon name="alert" />HTML
<script src="https://icons.atmosphere.africa/cdn/ba-icons-0.4.0.js" defer></script>
<ba-icon name="alert"></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 10.1 4.2 Q 12 1 13.9 4.2 L 21 18.1 Q 22 20 19.6 20 H 4.4 Q 2 20 3 18.1 Z"/><path d="M 12 9 V 13.7"/><path d="M 12 17.1 h 0.01"/></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-alert.svg<img src="https://icons.atmosphere.africa/svg/interface-icons/ba-alert.svg" alt="" width="20" height="20">import { iconUrl } from '@ba-icons/core'; // or any adapter
iconUrl('alert');
// → https://icons.atmosphere.africa/svg/interface-icons/ba-alert.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-alert.svg') center / contain no-repeat;
}New to the packages? Point your project at the registry first.