# polygon > **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 polygon. ## Required Permissions None ## Child Components The following are supported: [\](js-components-svg-animate.md), [\](js-components-svg-animatemotion.md), and [\](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.| | points | string | - | No| Multiple coordinates of the polygon.
The format is [x1,y1 x2,y2 x3,y3].
Attribute animations are supported. If the number of coordinates of the animation change value set in the attribute animation is different from the format of the original points, the attribute animation is invalid.| ## Example ```html
``` ![en-us_image_0000001173324721](figures/en-us_image_0000001173324721.png)