<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/AnnotationCalloutDelegate/calloutRightAccessoryForAnnotation",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Method",
  "symbol" : {
    "kind" : "Interface Method",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structm/mapkit.AnnotationCalloutDelegate/calloutRightAccessoryForAnnotation"
  },
  "title" : "calloutRightAccessoryForAnnotation(annotation)"
}
-->

# calloutRightAccessoryForAnnotation(annotation)

Returns an element to use as a custom accessory on the right side of the callout content area.

```
calloutRightAccessoryForAnnotation?(annotation: Annotation): HTMLElement;
```

## Parameters

`annotation`

The annotation for the callout.

## Return Value

This method returns a DOM element to display as the right accessory.

## Discussion

You can use this method to provide a custom accessory to the right side of the callout content area. It works similarly to [`calloutLeftAccessoryForAnnotation(annotation)`](/documentation/MapKitJS/AnnotationCalloutDelegate/calloutLeftAccessoryForAnnotation).

---

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)