onCanvas | boolean | | Whether the block is rendered on the canvas. Otherwise, it must be dragged into another block. | |
---|
color | string | ★ | The color of the block | |
---|
icon | IconName | ★ | The icon to be displayed on the block | |
---|
extras | Extra[] | ★ | The extra features of the block | |
---|
connections | Record<Position,{direction: ConnectionDirection, allowed: string[]}> | | The allowed connections for the block | { top: { direction: ConnectionDirection.Up, allowed: ['state'] } }
|
---|
hideNewPrefix | boolean | | Whether to hide the 'New' prefix in newly spawned blocks | |
---|
minified | boolean | | Whether the block utilizes a minified footprint | |
---|
style | object | | Style overrides for the block | { width: 100, height: 100 }
|
---|