ArticleTitle
The component for displaying an article title in the ArticleLink component.
Declaration
object ArticleTitleProperties
| Name | Type | Description |
|---|---|---|
role Required | string | Always |
additions | [Addition] | Ignored for all children of ArticleLink. |
anchor | Anchor | An object that defines vertical alignment with another component. |
animation | (ComponentAnimation | string("none")) | An object that defines an animation you apply to the component. Use the |
behavior | (Behavior | string("none")) | An object that defines behavior for a component, like Parallax or Springy. The |
conditional | (ConditionalText | [ConditionalText]) | An instance or array of text properties that can be applied conditionally, and the conditions that cause Apple News Format to apply them. |
format | string | The formatting or markup method applied to the text. Valid values:
Inline styling and additions with ranges (using |
hidden | boolean | A Boolean value that determines whether the component is hidden. |
identifier | string | A unique identifier for this component. If used, the identifier must be unique across the entire document. An identifier is required if you want to anchor other components to this component. See Anchor. |
inlineTextStyles | ([InlineTextStyle] | string("none")) | An array of Inline text styles are ignored when the The |
layout | (ComponentLayout | string) | Either an inline If |
style | (ComponentStyle | string | string("none")) | An inline The |
text | string | The text, styled according to the |
textStyle | (ComponentTextStyle | string) | An inline |
Mentioned in
Discussion
Use the ArticleTitle object to display the title of the linked article. ArticleTitle is used in combination with the ArticleLink component and is used by VoiceOver for iOS and VoiceOver for macOS to make content more accessible.
Example
{
"components": [
{
"role": "article_link",
"articleIdentifier": "https://apple.news/AT6kNQslCQy6EE4bF8hpOoQ",
"components": [
{
"role": "article_thumbnail",
"aspectRatio": 1,
"fillMode": "cover",
"verticalAlignment": "top"
},
{
"role": "article_title"
}
]
}
]
}