Definition file
This is auto-generated by the CLI.
export const MyBlockBlockV1: PluginBlockDefinition = {
client: {
blockDefinition: {
block: DefaultMyBlockBlockV1,
component: MyBlockBlockComponentV1,
baseNodeType: null as any,
},
metadata: {
info: 'My Block block for testfm',
helpFile: 'plugins/testfm/my-block-block',
icon: MdExtension,
},
aiInfo: {
summary: 'My Block block for testfm',
description: 'My Block block for testfm',
keyWords: ['my-block'],
aiInfo: 'Use this block to perform My Block operations',
props: {
name: 'The name parameter',
},
},
},
server: {
execute: executeMyBlockBlockV1,
},
}
Block Icons
Each block displays an icon in the top left of the Block when rendered in a Ziggy Flow.
For quick and easy icons, use an icon from React Icons. By default MdExtension is generated.
icon: MdExtension,
You can change this to another icons from React Icons or you can use a png, jpg or svg file.
icon: {
type: 'file',
format: 'png', // 'png', 'jpg', 'jpeg', 'svg'
path: 'myicon.png'
}
You should then place the image file in the assets folder and then rebuild the plugin using the package script or ziggy plugin build.