Gentleface › Health & medical › pill
pill icon
pillPill: pill, medicine, medication, drug. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Animated pill-open · line-round
The halves press together, then pull apart along the seam with a small twist. They hold open, snap shut and rebound once.
Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.2 s to 2 s. Examples and helper.
Code line-round
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M6.854 12.854C6.557 13.15 6.194 13.376 5.765 13.532C5.366 13.677 4.944 13.75 4.5 13.75C4.056 13.75 3.634 13.677 3.235 13.532C2.806 13.376 2.443 13.15 2.146 12.854C1.85 12.557 1.624 12.194 1.468 11.765C1.323 11.366 1.25 10.944 1.25 10.5C1.25 10.056 1.323 9.634 1.468 9.235C1.624 8.806 1.85 8.443 2.146 8.146L8.146 2.146C8.443 1.85 8.806 1.624 9.235 1.468C9.634 1.323 10.056 1.25 10.5 1.25C10.944 1.25 11.366 1.323 11.765 1.468C12.194 1.624 12.557 1.85 12.854 2.146C13.15 2.443 13.376 2.806 13.532 3.235C13.677 3.634 13.75 4.056 13.75 4.5C13.75 4.944 13.677 5.366 13.532 5.765C13.376 6.194 13.15 6.557 12.854 6.854L6.854 12.854ZM12.146 6.146C12.338 5.955 12.487 5.713 12.593 5.423C12.698 5.134 12.75 4.827 12.75 4.5C12.75 4.173 12.698 3.866 12.593 3.577C12.487 3.287 12.338 3.045 12.146 2.854C11.955 2.662 11.713 2.513 11.423 2.407C11.134 2.302 10.827 2.25 10.5 2.25C10.173 2.25 9.866 2.302 9.577 2.407C9.287 2.513 9.045 2.662 8.854 2.854L6.207 5.5L9.5 8.793L12.146 6.146ZM8.793 9.5L5.5 6.207L2.854 8.854C2.662 9.045 2.513 9.287 2.407 9.577C2.302 9.866 2.25 10.173 2.25 10.5C2.25 10.827 2.302 11.134 2.407 11.423C2.513 11.713 2.662 11.955 2.854 12.146C3.045 12.338 3.287 12.487 3.577 12.593C3.866 12.698 4.173 12.75 4.5 12.75C4.827 12.75 5.134 12.698 5.423 12.593C5.714 12.487 5.955 12.338 6.146 12.146L8.793 9.5Z"/></svg>
// Gentleface "pill" (line-round), MIT. https://gentleface.com/icons/pill
import type { SVGProps } from 'react';
export function PillIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
<path d="M6.854 12.854C6.557 13.15 6.194 13.376 5.765 13.532C5.366 13.677 4.944 13.75 4.5 13.75C4.056 13.75 3.634 13.677 3.235 13.532C2.806 13.376 2.443 13.15 2.146 12.854C1.85 12.557 1.624 12.194 1.468 11.765C1.323 11.366 1.25 10.944 1.25 10.5C1.25 10.056 1.323 9.634 1.468 9.235C1.624 8.806 1.85 8.443 2.146 8.146L8.146 2.146C8.443 1.85 8.806 1.624 9.235 1.468C9.634 1.323 10.056 1.25 10.5 1.25C10.944 1.25 11.366 1.323 11.765 1.468C12.194 1.624 12.557 1.85 12.854 2.146C13.15 2.443 13.376 2.806 13.532 3.235C13.677 3.634 13.75 4.056 13.75 4.5C13.75 4.944 13.677 5.366 13.532 5.765C13.376 6.194 13.15 6.557 12.854 6.854L6.854 12.854ZM12.146 6.146C12.338 5.955 12.487 5.713 12.593 5.423C12.698 5.134 12.75 4.827 12.75 4.5C12.75 4.173 12.698 3.866 12.593 3.577C12.487 3.287 12.338 3.045 12.146 2.854C11.955 2.662 11.713 2.513 11.423 2.407C11.134 2.302 10.827 2.25 10.5 2.25C10.173 2.25 9.866 2.302 9.577 2.407C9.287 2.513 9.045 2.662 8.854 2.854L6.207 5.5L9.5 8.793L12.146 6.146ZM8.793 9.5L5.5 6.207L2.854 8.854C2.662 9.045 2.513 9.287 2.407 9.577C2.302 9.866 2.25 10.173 2.25 10.5C2.25 10.827 2.302 11.134 2.407 11.423C2.513 11.713 2.662 11.955 2.854 12.146C3.045 12.338 3.287 12.487 3.577 12.593C3.866 12.698 4.173 12.75 4.5 12.75C4.827 12.75 5.134 12.698 5.423 12.593C5.714 12.487 5.955 12.338 6.146 12.146L8.793 9.5Z" />
</svg>
);
}Vue: see /icons/pill.md
Svelte: see /icons/pill.md
HTML img: see /icons/pill.md
CSS: see /icons/pill.md
Data URL: see /icons/pill.md
Sprite: see /icons/pill.md
SwiftUI: see /icons/pill.md
Compose: see /icons/pill.md
Android XML: see /icons/pill.md
Flutter: see /icons/pill.md
Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.
With npm: import { PillIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- pill, medicine, medication, drug, dosage, dose, medication list, meds, capsule
- Alternatives
tag: a pill-shaped tag, chip or label in a UIpill-bottle: a pharmacy or supplementsprescription: a prescription (Rx)
- Don’t confuse with
tablet: tablet is the device
- Also fits
- tablet: a medicine tablet (pill)
- Tags
- pill, capsule, medicine, medication, drug, pharmacy, tablet, prescription, dose
- Category
- Health & medical
- Component name
PillIcon- History
- added
- released in 0.1.0
- 20 px drawn, 24 px drawn
- Since
- version 0.1.0
Family 9
More health & medical icons
acupuncture ampoule antibody arrow-cool-down arrow-warm-up arrow-warm-up-dots bandage bandage-off bed-net biceps-flexed blister-pack blood-bag blood-drop blood-pressure blood-pressure-drop body-mass-index · all health & medical icons
For agents
Metadata: /icons/pill.json · Markdown: /icons/pill.md · SVG: https://gentleface.com/svg/{style}/16/pill.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/pill.png