gentleface

Gentleface › Design › line

line icon

Line: line, line tool, straight line, trend line. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

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="M11.707 5L5 11.707L5 14L2 14L2 11L4.293 11L11 4.293L11 2L14 2L14 5L11.707 5Z"/></svg>
React
// Gentleface "line" (line-round), MIT. https://gentleface.com/icons/line
import type { SVGProps } from 'react';

export function LineIcon(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="M11.707 5L5 11.707L5 14L2 14L2 11L4.293 11L11 4.293L11 2L14 2L14 5L11.707 5Z" />
    </svg>
  );
}
Vue
Vue: see /icons/line.md
Svelte
Svelte: see /icons/line.md
HTML img
HTML img: see /icons/line.md
CSS
CSS: see /icons/line.md
Data URL
Data URL: see /icons/line.md
Sprite
Sprite: see /icons/line.md
SwiftUI
SwiftUI: see /icons/line.md
Compose
Compose: see /icons/line.md
Android XML
Android XML: see /icons/line.md
Flutter
Flutter: see /icons/line.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 { LineIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
line, line tool, straight line, trend line
Tags
line, segment, stroke, draw, vector, straight, tool, handles
Category
Design
Component name
LineIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

More design icons

For agents

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