gentleface

Gentleface › Design › line

line icon

Line: line, line tool, straight 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 SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it. 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.

Meaning

Use it for
line, line tool, straight line
Tags
line, segment, stroke, draw, vector, straight, tool, handles
Category
Design
Component name
LineIcon
History
  • added

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

Feedback