Skip to main content

cornerRadius

The number of pixels to round the corners of the object by.

Signature

cornerRadius: number | figma.mixed

Remarks

This value must be non-negative and can be fractional. If an edge length is less than twice the corner radius, the corner radius for each vertex of the edge will be clamped to half the edge length.

This property can return figma.mixed if different vertices have different values.properties. Vector nodes can have individual corner radii on each vertex. Rectangle nodes can also have different corner radii on each of the four corners.

On this page