Skip to content

Commit 66332b7

Browse files
author
Ben Taylor
authored
trying again
1 parent 2598516 commit 66332b7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,25 +97,31 @@ will add the following to your markup (will be minified):
9797

9898
#### Generic Component PropTypes
9999

100+
100101
| PropType | Value | Description |
101102
| ------------- | ------------- | ------ |
102103
| type | String | The @type description in the json-ld body: `"@type": "Product"` |
103104
| jsonldtype | String | The value of the @type description in the json-ld body: `"@type": "Product"` |
104105
| schema | Object (json) | This should be the schema that you want for your structured data node: `{name: "It is awesome", reviewBody: "This is great!"}` |
105106

107+
106108
#### JSONLD node propTypes
107109

110+
108111
| PropType | Value | Description |
109112
| ------------- | ----------- | ------ |
110113
| dangerouslyExposeHtml | Boolean | Set this to render the json within script tag using `dangerouslySetInnerHTML` |
111114

115+
112116
#### Schema node PropTypes
113117

118+
114119
| PropType | Value | Description |
115120
| ------------- | ------------- | ------ |
116121
| parentID | String | Sets the id of the schema that becomes a reference that the children point to `"@id": "product-x"` |
117122
| id | String | similar to parentID but uses the ID on itself |
118123

124+
119125
### Preset Components
120126
There are several preset schema components that can be used
121127

0 commit comments

Comments
 (0)