Data model - photodow/wiki-helpers GitHub Wiki
Standard
Data model
This ContentModel is a standard content structure to be used across the IBM.com Library. It defines, and standardizes the content hierarchy in a way that allows us to be consistent and speak the same language as we build out new components.
Resources
| data | type |
|---|---|
image |
Image |
svg |
SVG [2] |
eyebrow |
String |
heading |
Object |
heading.type |
String |
heading.copy |
String |
copy |
Markdown utility |
children |
Object |
cta |
CTA |
| data | type | ||
|---|---|---|---|
(required) |
src |
String or Object
|
SVG |
...otherProps |
Attributes |
Attributes like ariaLabel, or aria-hidden can be passed in and applied to the SVG
|