We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppose I have a page, I can edit its title. Is there any way I can edit and assign any custom colour to the background currently, it is white only ?
it would be great if we can add prop for page background color below title
The text was updated successfully, but these errors were encountered:
Hey @kumarajay0412! You can add a new field to the root by adding a field to the root and use the render to render it.
root
render
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.
body
const config = { root: { fields: { title: { type: "text", }, background: { type: "text", }, }, render: ({ children, title, background }) => { return <div style={{ background }}>{children}</div>; }, }, };
Moving this to discussions
Sorry, something went wrong.
No branches or pull requests
Suppose I have a page, I can edit its title. Is there any way I can edit and assign any custom colour to the background currently, it is white only ?
it would be great if we can add prop for page background color below title
The text was updated successfully, but these errors were encountered: