gentleface

Gentleface › Connectivity › usb

usb icon

Usb: usb, usb connection, usb connected, usb device. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated usb-plug · line-round

The branches fold back into the stem and the plug drops down the frame, its tail going off the bottom. A socket slides in from the top, the plug shoots up into it and seats with a knock. The socket closes up, and the branches grow out to their terminals, which pop on one after the other.

Download SVG

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.25 s to 3.2 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M10 4L8 4L8 7L12 7L12 6L11 6L11 3L14 3L14 6L13 6L13 7.5C13 7.641 12.952 7.759 12.856 7.856C12.759 7.952 12.641 8 12.5 8L8 8L8 11.086C8.3 11.192 8.541 11.374 8.725 11.634C8.908 11.893 9 12.182 9 12.5C9 12.914 8.854 13.268 8.561 13.561C8.268 13.854 7.914 14 7.5 14C7.086 14 6.732 13.854 6.439 13.561C6.146 13.268 6 12.914 6 12.5C6 12.182 6.092 11.893 6.275 11.634C6.459 11.374 6.7 11.192 7 11.086L7 10L2.5 10C2.359 10 2.241 9.952 2.144 9.856C2.048 9.759 2 9.641 2 9.5L2 6.914C1.7 6.808 1.459 6.626 1.275 6.366C1.092 6.107 1 5.818 1 5.5C1 5.086 1.146 4.732 1.439 4.439C1.732 4.146 2.086 4 2.5 4C2.914 4 3.268 4.146 3.561 4.439C3.854 4.732 4 5.086 4 5.5C4 5.818 3.908 6.107 3.725 6.366C3.541 6.626 3.3 6.808 3 6.914L3 9L7 9L7 4L5 4L7.146 1.854L7.147 1.853L7.5 1.5L10 4Z"/></svg>
React
// Gentleface "usb" (line-round), MIT. https://gentleface.com/icons/usb
import type { SVGProps } from 'react';

export function UsbIcon(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="M10 4L8 4L8 7L12 7L12 6L11 6L11 3L14 3L14 6L13 6L13 7.5C13 7.641 12.952 7.759 12.856 7.856C12.759 7.952 12.641 8 12.5 8L8 8L8 11.086C8.3 11.192 8.541 11.374 8.725 11.634C8.908 11.893 9 12.182 9 12.5C9 12.914 8.854 13.268 8.561 13.561C8.268 13.854 7.914 14 7.5 14C7.086 14 6.732 13.854 6.439 13.561C6.146 13.268 6 12.914 6 12.5C6 12.182 6.092 11.893 6.275 11.634C6.459 11.374 6.7 11.192 7 11.086L7 10L2.5 10C2.359 10 2.241 9.952 2.144 9.856C2.048 9.759 2 9.641 2 9.5L2 6.914C1.7 6.808 1.459 6.626 1.275 6.366C1.092 6.107 1 5.818 1 5.5C1 5.086 1.146 4.732 1.439 4.439C1.732 4.146 2.086 4 2.5 4C2.914 4 3.268 4.146 3.561 4.439C3.854 4.732 4 5.086 4 5.5C4 5.818 3.908 6.107 3.725 6.366C3.541 6.626 3.3 6.808 3 6.914L3 9L7 9L7 4L5 4L7.146 1.854L7.147 1.853L7.5 1.5L10 4Z" />
    </svg>
  );
}
Vue
Vue: see /icons/usb.md
Svelte
Svelte: see /icons/usb.md
HTML img
HTML img: see /icons/usb.md
CSS
CSS: see /icons/usb.md
Data URL
Data URL: see /icons/usb.md
Sprite
Sprite: see /icons/usb.md
SwiftUI
SwiftUI: see /icons/usb.md
Compose
Compose: see /icons/usb.md
Android XML
Android XML: see /icons/usb.md
Flutter
Flutter: see /icons/usb.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 { UsbIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
usb, usb connection, usb connected, usb device, mini usb
Alternatives
  • usb-drive: a USB stick (usb-drive)
  • usb-c-port: the USB-C port (usb-c)
Also fits
  • cable: a USB connection (usb)
  • usb c: USB in general: the trident (usb)
  • usb drive: a USB connection (usb-connection)
Tags
usb, port, connector, cable, peripheral, trident
Category
Connectivity
Component name
UsbIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

Family 2

More connectivity icons

For agents

Metadata: /icons/usb.json · Markdown: /icons/usb.md · SVG: https://gentleface.com/svg/{style}/16/usb.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/usb.png