Skip to content
tablericons
Category
general
Styles
Outline
Component
IconLine

general

Line icon

Download the Line icon as free SVG or PNG. Customize its outline stroke. Copy React, Vue or Svelte code.

  • segment
  • stroke
  • straight
  • draw
  • shape
  • geometry
Size
Stroke
Color
Download SVG

Press C to copy SVG, J for JSX, D to download.

Code

Copy it the way you use it

line.svg
<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="M4 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
  <path d="M16 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
  <path d="M7.5 16.5l9 -9" />
</svg>

Use the Line icon

For a decorative icon beside text, add aria-hidden="true" to the SVG. For an icon-only control, put its accessible name on the button or link.

React example
import { IconLine } from '@tabler/icons-react';

<IconLine size={24} stroke={2} />
Read the React guide
Vue example
import { IconLine } from '@tabler/icons-vue';

<IconLine :size="24" :stroke="2" />
Read the Vue guide
Svelte 5 example
import { IconLine } from '@tabler/icons-svelte-runes';

<IconLine size={24} stroke={2} />
Read the Svelte guide

Compare variants and alternatives

Related

Related icons

See all 788 general icons