change page background color #67
-
Beta Was this translation helpful? Give feedback.
Answered by
chrisvxd
Sep 11, 2023
Replies: 1 comment
-
Hey @kumarajay0412! You can add a new field to the root by adding a field to the If you're looking to add it the the const config = {
root: {
fields: {
title: {
type: "text",
},
background: {
type: "text",
},
},
render: ({ children, title, background }) => {
return <div style={{ background }}>{children}</div>;
},
},
}; Moving this to discussions |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chrisvxd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @kumarajay0412! You can add a new field to the root by adding a field to the
root
and use therender
to render it.If you're looking to add it the the
body
, you'll probably need to inject some styles or do some other Next.js magic.Moving this to discussions