Line
Description
Draws a line
Line
component
The Line
component is used to just draw a straight line. It has the following props:
x1
(required) starting x positiony1
(required) starting y postiionx2
(required) the end x positiony2
(required) the end y positionwidth
(optional) the width of the line (default '2')color
(optional) the color of the line. Colors can be any of the color schemes. the default is 'black'. The background color of the theme is applied to the stroke of the line soblack
is black line,red
is red line,red-light
is a light red line, etc.
md
<Line :x1=0 :y1=0 :x2=200 :y2=200 :width=2 color='red' v-drag />
Renders as:
well, a red svg line, what did you want to see?