Line icon

Used in drawing line scenarios. The Line icon is part of Microsoft's Fluent UI System Icons, available here in filled and regular (outlined) styles on a 24 px grid. Download it as SVG or PNG, or copy it as code — it's free to use under the MIT License.

Regular (outlined)

SVG

Filled

SVG

Use the Line icon in React

Install Microsoft's @fluentui/react-icons package, then import the component. Icons inherit the current text color, and you can size them with CSS.

npm install @fluentui/react-icons

import { Line24Regular, Line24Filled } from "@fluentui/react-icons";

export function Example() {
  return <Line24Regular aria-label="Line" />;
}

Use it in HTML

Reference the SVG file directly:

<img src="https://fluenticons.co/icons/ic_fluent_line_24_regular.svg" width="24" height="24" alt="Line">

Or paste the SVG markup inline. Setting fill="currentColor" makes the icon follow the text color of its parent:

<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21.7838 2.21967C22.0767 2.51256 22.0767 2.98744 21.7838 3.28033L3.28033 21.7838C2.98744 22.0767 2.51256 22.0767 2.21967 21.7838C1.92678 21.4909 1.92678 21.016 2.21967 20.7231L20.7231 2.21967C21.016 1.92678 21.4909 1.92678 21.7838 2.21967Z" fill="currentColor"/></svg>

Use it from the SVG package

Microsoft's @fluentui/svg-icons package contains the raw SVG files, which works well with bundlers that import SVGs:

npm install @fluentui/svg-icons

import icon from "@fluentui/svg-icons/icons/line_24_regular.svg";

Details

NameLine
StylesRegular (outlined), Filled
Size24 × 24 px (scalable SVG)
Regular (outlined) fileic_fluent_line_24_regular.svg
Filled fileic_fluent_line_24_filled.svg
React componentsLine24Regular, Line24Filled
LicenseMIT (© Microsoft Corporation)

Keywords

drawcreateedit

Related icons