You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: components/x-live-blog-post/readme.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -45,13 +45,13 @@ Feature | Type | Notes
45
45
`postId` | String | Deprecated - Unique id to reference the content
46
46
`title` | String | Title of the content
47
47
`bodyHTML` | String | Body of the content, if data is from next elasticsearch
48
-
`body` | Object | Structured Body of the content, if data is from cp-content-pipeline-api
49
-
`byline` | String or Object | Byline for the post, sometimes used to render the author's name. Will be an object if data is from cp-content-pipeline-api
48
+
`body` | Object | Structured Body of the content, if data is from `cp-content-pipeline-api`
49
+
`byline` | String or Object | Byline for the post, sometimes used to render the author's name. Will be an object if data is from `cp-content-pipeline-api`
50
+
| `renderRichText` | Function | A component to use for rendering structured content, e.g. `RichText` from `cp-content-pipeline-ui`. Required when rendering with data from `cp-content-pipeline-api`.
50
51
`content` | String | Deprecated - Body of the content
51
52
`isBreakingNews` | Bool | When `true` displays "breaking news" tag
52
53
`publishedDate` | String | ISO timestamp of publish date
53
54
`publishedTimestamp`| String | Deprecated - ISO timestamp of publish date
54
55
`articleUrl` | String | Url of the main article that includes this post
55
56
`showShareButtons` | Bool | default: `false` - Shows social media share buttons when `true`
56
-
`backToTop` | String | Function | Shows the back to top link at the bottom of posts and manages navigating to `selected top` with a javascript function or a hashed href (string). If this prop is a string it will rely on standard browser behaviour to navigate to the element `id` provided that represents the top. If this prop is a function then that function should control the experience of navigating/scrolling to the top position. When using a function please call event.preventDefault() at the top level.
57
-
57
+
`backToTop` | String or Function | Shows the back to top link at the bottom of posts and manages navigating to `selected top` with a javascript function or a hashed href (string). If this prop is a string it will rely on standard browser behaviour to navigate to the element `id` provided that represents the top. If this prop is a function then that function should control the experience of navigating/scrolling to the top position. When using a function please call event.preventDefault() at the top level.
|`showShareButtons`| Boolean | if `true` displays social media sharing buttons in posts |
203
203
|`posts`| Array | Array of live blog post data |
204
204
|`id`| String |**(required)** Unique id used for identifying the element in the document. |
205
+
| `renderRichText` | Component | A component to use for rendering structured content, e.g. `RichText` from `cp-content-pipeline-ui`. Required when rendering with data from `cp-content-pipeline-api`.
205
206
206
207
## Configuring the `next-live-event-api` endpoint URL.
0 commit comments