From 78d07cb397f56fcb90b405c5ce2f8e76587d4124 Mon Sep 17 00:00:00 2001 From: techmannih Date: Thu, 23 Oct 2025 23:06:39 +0530 Subject: [PATCH] Add doc for corner_radius in smtpad --- docs/footprints/smtpad.mdx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/footprints/smtpad.mdx b/docs/footprints/smtpad.mdx index 48af748..0cc5e8b 100644 --- a/docs/footprints/smtpad.mdx +++ b/docs/footprints/smtpad.mdx @@ -49,6 +49,7 @@ Each smtpad shape has different properties. | ----------- | ------------ | --------------------------------------------------------------------------- | | width | rect, pill | The width of the pad | | height | rect, pill | The height of the pad | +| cornerRadius | rect | Optional. Corner radius for rectangular pads | | radius | circle, pill | The radius of the pad (for circle) or corner radius (for pill) | | points | polygon | An array of `{ x, y }` coordinates describing the polygon vertices | | ccwRotation | rect | Counter-clockwise rotation angle in degrees | @@ -57,6 +58,35 @@ Each smtpad shape has different properties. | pcbY | all | Y position of the pad center on the PCB | | layer | all | Which layer the pad is on (`"top"` or `"bottom"`) | +## Example: Rectangular Pad with Rounded Corners + +Use the `cornerRadius` property on rectangular pads to round their corners. + + ( + + + + + } /> + + ) + `} +/> + ## Example: Polygon Pad Here’s an example of using a **polygon smtpad**