Adding Traits properties in canvas body[QUESTION]
You can add them at run time https://grapesjs.com/docs/modules/Traits.html#updating-traits-at-run-time
Read full answer below βQuestion
Hi, I know that we add the traits options or properties for any component blocks. but I don't know how to add the traits for canvas body. can anyone please help me.

In the above image. under the settings options. I need to add one input and radio button.
Answers (1)
You can add them at run time https://grapesjs.com/docs/modules/Traits.html#updating-traits-at-run-time
editor.getWrapper().set('traits', [
{ name: 'title', label: 'Title' },
])
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1723
Replacing particular text in dropped component
Hi, I get the value from custom traits from what I entered but I don't know how to change the particular value in dropped component and ren...
Issue #1869
How to add extra field in input traits
Hi, I want to add the new field in default input traits. for example:- i need to add {label: binding, name:binding} in already exist input...
Issue #1826
How to add link to an image?
Hi Artur, How to add a link to this image? If i need to create a custom component, please give me some example code Artur.. Thank you so mu...
Issue #3253
How does the property color changes to blue when value changed?
Hi, We are encountering an issue - color of property name such as "Width" is blue when dragging a new component to canvas, but we don't mod...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins βPremium plugins ship with support, regular updates, and production-ready features β save days of integration work.
Browse premium plugins βRelated tutorials
In-depth guides on the same topic.
Tutorial
How Much Does It Cost to Build a SaaS Page Builder in 2026?
How much does it cost to build a SaaS page builder in 2026? Explore realistic development costs, timelines, features, and how using GrapesJS can reduce
Tutorial
PageKit: the GrapesJS application you'd have to build anyway
A source-available Next.js app around the open-source GrapesJS core β publishing, custom domains, leads, checkout and a plugin loader.
Tutorial
UnStudio for GrapesJS: 4 Plugins to Build Better Visual Editors
Meet UnStudio, a new GrapesJS plugin studio with four tools, safer and better editor: Command Palette, Responsive Pack, Autosave & Restore, and Autofill
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.