Pills icon
fa-solid:pills
The Pills icon (fa-solid:pills) is a free SVG icon from the Font Awesome 5 Solid set by Dave Gandy. It is drawn on a 576 × 512 grid. Font Awesome 5 Solid icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Font Awesome 5 Solid
- Author
- Dave Gandy
- License
- CC-BY-4.0
- Size
- 576 × 512
- Category
- Medical, Science, Pharmacy
- Tags
- pill
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="576" height="512" viewBox="0 0 576 512"><path fill="currentColor" d="M112 32C50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V144c0-61.9-50.1-112-112-112m48 224H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48zm139.7-29.7c-3.5-3.5-9.4-3.1-12.3.8c-45.3 62.5-40.4 150.1 15.9 206.4s143.9 61.2 206.4 15.9c4-2.9 4.3-8.8.8-12.3zm229.8-19c-56.3-56.3-143.9-61.2-206.4-15.9c-4 2.9-4.3 8.8-.8 12.3l210.8 210.8c3.5 3.5 9.4 3.1 12.3-.8c45.3-62.6 40.5-150.1-15.9-206.4"/></svg>How to use the Pills icon
React
import { Icon } from "@iconify/react";
<Icon icon="fa-solid:pills" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="fa-solid:pills" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="fa-solid:pills" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[fa-solid--pills]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/fa-solid -->
<div class="i-fa-solid:pills"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="fa-solid:pills"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/fa-solid/pills.svg" alt="Pills icon" width="24" height="24">Pills icon in other icon sets
Pills icon FAQ
Is the Pills icon free for commercial use?
Yes. Font Awesome 5 Solid icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.
How do I use the Pills icon in React?
Install @iconify/react and render <Icon icon="fa-solid:pills" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Pills icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/fa-solid/pills.svg" alt="Pills icon">, or paste the SVG code inline to style it with CSS.