<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Padding/PaddingConstructor3",
  "metadataVersion" : "0.1.0",
  "role" : "Constructor",
  "symbol" : {
    "kind" : "Constructor",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instctr/mapkit.Padding/PaddingConstructor3"
  },
  "title" : "new Padding(top, right)"
}
-->

# new Padding(top, right)

Creates a padding object and initializes it with the provided top and right side values.

```
constructor(top: number, right: number);
```

## Parameters

`top`

the top inset margin.

`right`

the right inset margin.

## Discussion

The framework sets the left and bottom padding values to `0`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)