Virus icon
bxs:virus
The Virus icon (bxs:virus) is a free SVG icon from the BoxIcons v2 Solid set by Boxicons. It is drawn on a 24 × 24 grid. BoxIcons v2 Solid icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- BoxIcons v2 Solid
- Author
- Boxicons
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M21 11h-.17c-1.053 0-1.958-.669-2.357-1.644l-.021-.049c-.408-.977-.249-2.097.5-2.846l.119-.119a.999.999 0 1 0-1.414-1.414l-.119.119c-.749.749-1.869.908-2.846.5l-.049-.021C13.669 5.128 13 4.218 13 3.165v-.081C13 2.447 12.553 2 12 2s-1 .447-1 1v.036c0 1.096-.66 2.084-1.673 2.503l-.006.003a2.71 2.71 0 0 1-2.953-.588l-.025-.025a.999.999 0 1 0-1.414 1.414l.036.036a2.69 2.69 0 0 1 .583 2.929l-.027.064A2.64 2.64 0 0 1 3.085 11h-.001C2.447 11 2 11.447 2 12s.447 1 1 1h.068a2.66 2.66 0 0 1 2.459 1.644l.021.049a2.69 2.69 0 0 1-.583 2.929l-.036.036a.999.999 0 1 0 1.414 1.414l.036-.036a2.69 2.69 0 0 1 2.929-.583l.143.06A2.505 2.505 0 0 1 11 20.83v.085c0 .638.447 1.085 1 1.085s1-.448 1-1v-.17c0-1.015.611-1.93 1.55-2.318l.252-.104a2.51 2.51 0 0 1 2.736.545l.119.119a.999.999 0 1 0 1.414-1.414l-.119-.119c-.749-.749-.908-1.869-.5-2.846l.021-.049c.399-.975 1.309-1.644 2.362-1.644h.08c.638 0 1.085-.447 1.085-1s-.447-1-1-1M8 13a1 1 0 1 1 0-2a1 1 0 0 1 0 2m5 3.5a1 1 0 1 1 0-2a1 1 0 0 1 0 2m1-4.5a2 2 0 1 1 .001-4.001A2 2 0 0 1 14 12"/></svg>How to use the Virus icon
React
import { Icon } from "@iconify/react";
<Icon icon="bxs:virus" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="bxs:virus" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="bxs:virus" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[bxs--virus]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/bxs -->
<div class="i-bxs:virus"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="bxs:virus"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/bxs/virus.svg" alt="Virus icon" width="24" height="24">Related icons in BoxIcons v2 Solid
Virus icon in other icon sets
Virus icon FAQ
Is the Virus icon free for commercial use?
Yes. BoxIcons v2 Solid icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Virus icon in React?
Install @iconify/react and render <Icon icon="bxs:virus" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Virus icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/bxs/virus.svg" alt="Virus icon">, or paste the SVG code inline to style it with CSS.