# line > **NOTE** > > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. The **\** component is used to draw a line. ## Required Permissions None ## Child Components The following are supported: [animate](js-components-svg-animate.md), [animateMotion](js-components-svg-animatemotion.md), and [animateTransform](js-components-svg-animatetransform.md). ## Attributes The [universal attributes](js-components-svg-common-attributes.md) and the attributes listed below are supported. | Name| Type| Default Value| Mandatory| Description| | -------- | -------- | -------- | -------- | -------- | | id | string | - | No| Unique ID of the component.| | x1 | <length>\|<percentage> | - | No| X-coordinate of the start point of the line. Attribute animations are supported.| | y1 | <length>\|<percentage> | - | No| Y-coordinate of the start point of the line. Attribute animations are supported.| | x2 | <length>\|<percentage> | - | No| X-coordinate of the end point of the line. Attribute animations are supported.| | y2 | <length>\|<percentage> | - | No| Y-coordinate of the end point of the line. Attribute animations are supported.| ## Example ```html
``` ![en-us_image_0000001127284954](figures/en-us_image_0000001127284954.png)