# polygon The **** component is used to draw a polygon. >![](../../public_sys-resources/icon-note.gif) **NOTE:** >The APIs of this module are supported since API version 7. ## Permission List None ## Child Components **animate**, **animateMotion**, and **animateTransform** are supported. ## Attributes The universal attributes as well as 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 ```
``` ![](figures/en-us_image_0000001173324721.png)