Pill icon
ph:pill
The Pill icon (ph:pill) is a free SVG icon from the Phosphor set by Phosphor Icons. It is drawn on a 256 × 256 grid. Phosphor 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
- Phosphor
- Author
- Phosphor Icons
- License
- MIT
- Size
- 256 × 256
- Tags
- capsule, medicine, rx, pharmacy, pharmacist, pharmaceuticals, prescription, drugs
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"><path fill="currentColor" d="M216.42 39.6a53.26 53.26 0 0 0-75.32 0L39.6 141.09a53.26 53.26 0 0 0 75.32 75.31l101.51-101.49a53.31 53.31 0 0 0-.01-75.31M103.61 205.09a37.26 37.26 0 0 1-52.7-52.69L96 107.31L148.7 160Zm101.5-101.49L160 148.69L107.32 96l45.1-45.09a37.26 37.26 0 0 1 52.69 52.69m-15.43-21.26a8 8 0 0 1 0 11.32l-24 24a8 8 0 1 1-11.31-11.32l24-24a8 8 0 0 1 11.31 0"/></svg>How to use the Pill icon
React
import { Icon } from "@iconify/react";
<Icon icon="ph:pill" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="ph:pill" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="ph:pill" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[ph--pill]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/ph -->
<div class="i-ph:pill"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="ph:pill"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/ph/pill.svg" alt="Pill icon" width="24" height="24">Related icons in Phosphor
Pill icon in other icon sets
Pill icon FAQ
Is the Pill icon free for commercial use?
Yes. Phosphor icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Pill icon in React?
Install @iconify/react and render <Icon icon="ph:pill" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Pill icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/ph/pill.svg" alt="Pill icon">, or paste the SVG code inline to style it with CSS.