A cord with a plug at each end, for cables, wired connections and charging leads. On a 24×24 grid in stroke, two-tone, duotone and fill, free under MIT.
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M14 4L6 4C3.7909 4 2 5.7909 2 8C2 10.2091 3.7909 12 6 12L18 12C20.2091 12 22 13.7909 22 16C22 18.2091 20.2091 20 18 20L10 20M15 2L19 2C19.5523 2 20 2.4477 20 3L20 5C20 5.5523 19.5523 6 19 6L15 6C14.4477 6 14 5.5523 14 5L14 3C14 2.4477 14.4477 2 15 2ZM5 18L9 18C9.5523 18 10 18.4477 10 19L10 21C10 21.5523 9.5523 22 9 22L5 22C4.4477 22 4 21.5523 4 21L4 19C4 18.4477 4.4477 18 5 18ZM20 4L22 4M4 20L2 20"/>
</svg>Also called
What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.
- cord
- wire
- plug
- connector
- charger
- usb cable
- lead
Related icons
The rest of the cable family first, then the Devices shelf.
FAQ
Answered from cable's own facts: its shelf, the weights it was drawn in, its siblings and its dates.
- What is the cable icon for?
- A cord with a plug at each end, for cables, wired connections and charging leads. It is filed under Devices in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as cord, wire, plug, connector, charger, usb cable and lead, and the browser's search matches all of those.
- What styles does the cable icon come in?
- All four: stroke, two-tone, duotone and fill. They are drawn from the same geometry, so swapping style never moves anything.
- Is there a square or circle version of cable?
- No. cable is drawn as a bare glyph, and the set has no boxed variant of it.
- What other icons go with cable?
- app-check, app-dot, app-minus, app-plus, app-window and app-window-2, and 12 more, all shown below. They are the Devices shelf: nothing else in the set is named after cable.
- How do I import cable in React?
- <Cable /> is the component, and the weight decides the module: stroke from "@keyline-icons/react", two-tone from "@keyline-icons/react/two-tone", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <Cable size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
- Where is the cable SVG?
- icons/stroke/cable.svg, icons/two-tone/cable.svg, icons/duotone/cable.svg and icons/fill/cable.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
- When was cable added to the set?
- Added 17 Sept 2026. It ships in v1.0.0, so an install at that version or later has it.
Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.