Skip to content

Instantly share code, notes, and snippets.

@byronwade
Created April 17, 2020 00:33
Show Gist options
  • Save byronwade/7c572f7b6b634fbcca26d95832eb0e61 to your computer and use it in GitHub Desktop.
Save byronwade/7c572f7b6b634fbcca26d95832eb0e61 to your computer and use it in GitHub Desktop.
/* include the paragraph block and if its being queryed then display it passing the props down to it */
/* this is just me throwing somthing in quickly but I think you might understand what im doing */
<Paragraph className="props.className" content="props.content" />
query MyQuery {
pages {
nodes {
blocks {
... on CoreParagraphBlock {
parentId
name
attributes {
... on CoreParagraphBlockAttributesV3 {
align
backgroundColor
className
content
customBackgroundColor
customFontSize
customTextColor
direction
dropCap
fontSize
placeholder
textColor
width
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment