External link icon
A free pencil-style external link icon, drawn by code from 2 polylines and 1 line. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use external-link
One package, four ways in. The icon inherits currentColor and is decorative unless you give it a title. Install it with npm i @matita/icons.
React
import { ExternalLink } from '@matita/icons/react';
<ExternalLink size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="external-link" />JavaScript
import { ExternalLink, toSvg } from '@matita/icons';
toSvg(ExternalLink, { size: 24 }); // SVG stringSVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" overflow="visible" class="sketch-icon sketch-icon-external-link" data-sketch="" aria-hidden="true"><path d="M18.69 12.67Q18.39 16.12 18.43 19.58Q11.56 19.3 4.69 19.65Q4.69 12.59 4.31 5.54Q7.89 5.7 11.46 5.36" stroke-width="1.76"/><path d="M14.07 4.23Q17.02 4.05 19.96 3.8Q19.93 6.7 20.12 9.6" stroke-width="1.792"/><path d="M20.18 3.83Q15.1 8.16 10.62 13.09" stroke-width="1.568"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { ExternalLink } from '@matita/icons/react';
<ExternalLink size={32} pencil />The file is icons/external-link.svg in the package (pencil/external-link.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for external-link
External link is not stored as a drawing. It is a recipe of 2 polylines and 1 line on a 24 by 24 grid, and a small program draws it like a pencil would. The wobble comes from the name, so it always comes out the same.
P 18.5 13 18.5 19.5 4.5 19.5 4.5 5.5 11 5.5;
P 14.5 4 20 4 20 9.5;
L 20 4 11 13
external-link as a number: 447101577
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, O dot. Separate shapes with ;. Edits stay on this page.
03Takes, sizes, pencil
Same icon, every way
Pass a seed for another take of the same recipe. The wobble is capped, so it still reads at 16 px.
Five seeds of external-link. Seed 0 is the default.
True pixel sizes.