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
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,27 @@ will add the following to your markup (will be minified):
93
93
94
94
## Reference
95
95
96
+
### PropTypes
97
+
98
+
#### Generic Component PropTypes
99
+
100
+
| PropType | Value | Description |
101
+
| ------------- |:-------------:|:------|
102
+
| type | String | The @type description in the json-ld body: ```"@type": "Product"```|
103
+
| jsonldtype | String | The value of the @type description in the json-ld body: ```"@type": "Product"```|
104
+
| 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
+
#### JSONLD node propTypes
107
+
| PropType | Value | Description |
108
+
| ------------- |:-------------:|:------|
109
+
| dangerouslyExposeHtml | Boolean | Set this to render the json within script tag using ```dangerouslySetInnerHTML```|
110
+
111
+
#### Schema node PropTypes
112
+
| PropType | Value | Description |
113
+
| ------------- |:-------------:|:------|
114
+
| parentID | String | This sets the id of the schema that becomes a reference that the children point to ```"@id": "product-x"```|
115
+
| id | String | similar to parentID but uses the ID on itself |
116
+
96
117
### Preset Components
97
118
There are several preset schema components that can be used
0 commit comments