Line
An SVG line element.
Import
import { Line } from "@tarve/core";Usage
import { Line, Svg } from "@tarve/core";
<Svg viewBox="0 0 24 24" size={32}>
<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 4 props
| Prop | Type | Default |
|---|---|---|
x1 required | number | string | — |
x2 required | number | string | — |
y1 required | number | string | — |
y2 required | number | string | — |