# Line

> An SVG line element.

- Category: [Text & media](https://tarve.dev/docs.md#text-media)
- Import: `import { Line } from "@tarve/core";`
- Source: [packages/core/src/components/svg.ts:50](https://github.com/omarcosr/tarve/blob/main/packages/core/src/components/svg.ts#L50)

## Usage

```tsx title="Line.tsx"
import { Line, Svg } from "@tarve/core";

<Svg viewBox="0 0 24 24" size={64}>
  <Line x1={4} y1={20} x2={20} y2={4} />
</Svg>
```

## Props

Line has no props of its own beyond the inherited and common props below.

### Inherited from `LineProps`

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `x1` (required) | `number \| string` | — |  |
| `x2` (required) | `number \| string` | — |  |
| `y1` (required) | `number \| string` | — |  |
| `y2` (required) | `number \| string` | — |  |

Previous: [Ellipse](https://tarve.dev/docs/components/Ellipse.md) · Next: [Polyline](https://tarve.dev/docs/components/Polyline.md)

---

Tarve v0.13.8 · HTML version: https://tarve.dev/docs/components/Line · Index for agents: https://tarve.dev/llms.txt
