Gentleface › Shopping › barcode
barcode icon
barcodeBarcode: barcode, product code, sku, upc. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.
Animated barcode-scan · line-round
A scan beam crosses the code and comes back. Each bar stretches as the beam reaches it and drops back once it has passed.
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.1 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="M3 3L3 13L2 13L2 3L3 3ZM6 3L6 13L4 13L4 3L6 3ZM8 13L7 13L7 3L8 3L8 13ZM11 3L11 13L10 13L10 3L11 3ZM14 13L12 13L12 3L14 3L14 13Z"/></svg>
// Gentleface "barcode" (line-round), MIT. https://gentleface.com/icons/barcode
import type { SVGProps } from 'react';
export function BarcodeIcon(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="M3 3L3 13L2 13L2 3L3 3ZM6 3L6 13L4 13L4 3L6 3ZM8 13L7 13L7 3L8 3L8 13ZM11 3L11 13L10 13L10 3L11 3ZM14 13L12 13L12 3L14 3L14 13Z" />
</svg>
);
}Vue: see /icons/barcode.md
Svelte: see /icons/barcode.md
HTML img: see /icons/barcode.md
CSS: see /icons/barcode.md
Data URL: see /icons/barcode.md
Sprite: see /icons/barcode.md
SwiftUI: see /icons/barcode.md
Compose: see /icons/barcode.md
Android XML: see /icons/barcode.md
Flutter: see /icons/barcode.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 { BarcodeIcon } from '@gentleface/react'; (setup).
Meaning
- Use it for
- barcode, product code, sku, upc, ean
- Alternatives
qr-code: a 2D code that carries a link, ticket or paymentscan-barcode: the scan action (scanner frame around the bars)
- Also fits
- qr code: a 1D product code (SKU, EAN)
- scan barcode: show the barcode of a product (barcode)
- Tags
- barcode, scan, product, sku, upc, ean, inventory, price
- Category
- Shopping
- Component name
BarcodeIcon- History
- added
- released in 0.1.0
- 20 px redrawn, 24 px redrawn, 20 px drawn, 24 px drawn
- Since
- version 0.1.0
Family 1
More shopping icons
arrows-up-from-line baseball-cap beanie belt boot boot-buckle bow-tie box-heart cash-register catalog clothes-rack dress earrings flip-flops gem gift · all shopping icons
For agents
Metadata: /icons/barcode.json · Markdown: /icons/barcode.md · SVG: https://gentleface.com/svg/{style}/16/barcode.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/barcode.png