File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,22 @@ export const Canvas = () => {
236
236
registerComponentLibrary ( {
237
237
components : baseComponents ,
238
238
metas : baseComponentMetas ,
239
- propsMetas : baseComponentPropsMetas ,
239
+ propsMetas : Object . fromEntries (
240
+ Object . entries ( baseComponentPropsMetas ) . map (
241
+ ( [ component , propsMeta ] ) => {
242
+ propsMeta . props . comment = {
243
+ type : "string" ,
244
+ control : "text" ,
245
+ required : false ,
246
+ description :
247
+ "Describe the behavior of this layer and optionally its children." ,
248
+ } ;
249
+ propsMeta . initialProps ??= [ ] ;
250
+ propsMeta . initialProps . push ( "comment" ) ;
251
+ return [ component , propsMeta ] ;
252
+ }
253
+ )
254
+ ) ,
240
255
hooks : baseComponentHooks ,
241
256
templates : baseComponentTemplates ,
242
257
} ) ;
You can’t perform that action at this time.
0 commit comments