<!--
{
  "availability" : [
    "Apple News Format: 1.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppleNews",
  "identifier" : "/documentation/AppleNewsFormat/Heading",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple News Format"
    ],
    "preciseIdentifier" : "data:news_format:Heading"
  },
  "title" : "Heading"
}
-->

# Heading

The text component for adding a heading.

```
object Heading
```

## Discussion

Use a `Heading` component to define a heading. There are six levels of headings. The `role` strings for the supported heading levels are `heading`, `heading1`, `heading2`, `heading3`, `heading4`, `heading5`, and `heading6`.

### Example

```json
{
  "components": [
    {
      "role": "heading",
      "text": "Not only on Mars"
    }
  ]
}
```

## Relationships

### Inherits From

[`Text`](/documentation/AppleNewsFormat/Text)

---

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)