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: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,25 +97,31 @@ will add the following to your markup (will be minified):
97
97
98
98
#### Generic Component PropTypes
99
99
100
+
100
101
| PropType | Value | Description |
101
102
| ------------- | ------------- | ------ |
102
103
| type | String | The @type description in the json-ld body: `"@type": "Product"`|
103
104
| jsonldtype | String | The value of the @type description in the json-ld body: `"@type": "Product"`|
104
105
| schema | Object (json) | This should be the schema that you want for your structured data node: `{name: "It is awesome", reviewBody: "This is great!"}`|
105
106
107
+
106
108
#### JSONLD node propTypes
107
109
110
+
108
111
| PropType | Value | Description |
109
112
| ------------- | ----------- | ------ |
110
113
| dangerouslyExposeHtml | Boolean | Set this to render the json within script tag using `dangerouslySetInnerHTML`|
111
114
115
+
112
116
#### Schema node PropTypes
113
117
118
+
114
119
| PropType | Value | Description |
115
120
| ------------- | ------------- | ------ |
116
121
| parentID | String | Sets the id of the schema that becomes a reference that the children point to `"@id": "product-x"`|
117
122
| id | String | similar to parentID but uses the ID on itself |
118
123
124
+
119
125
### Preset Components
120
126
There are several preset schema components that can be used
0 commit comments