A regular polygon has equal-length sides arranged around a center. Changing the side count changes its silhouette from a triangle to a square, hexagon, and beyond.
`sides` sets the number of sides from 3 to 12. `radius` is the distance from the center to the middle of each side, from 0 to 1. Raise `rounding` from 0 to 1 to soften the corners toward a circle, and use `rotation` from 0 to 360 degrees to change its orientation.
A high `rounding` value removes the polygon's distinct corners, so keep it low when the side count matters to an icon. Pair it with `Star` or `Flower` to compare angular and radial shapes around the same center.
When to use
Use it for geometric icons, badges, and repeating pattern shapes. It can create a regular polygon with a chosen number of sides or soften its corners. Avoid it when you need an organic, asymmetric outline.