Skip to content

Commit

Permalink
Use props
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Aug 29, 2022
1 parent ce2b188 commit 6a3d7d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type PluginOptions = {
* Custom CSS styles for the component. This will replace the default one.
* @default ''
*/
style?: string,
style?: string,

/**
* Additional CSS styles for the component. These will be appended to the default one.
Expand Down Expand Up @@ -114,7 +114,7 @@ const plugin: grapesjs.Plugin<PluginOptions> = (editor, opts = {}) => {
...opts,
};

const { block } = options;
const { block, props } = options;
const id = options.id!;
const label = options.label!;
const pfx = options.classPrefix!;
Expand Down Expand Up @@ -258,6 +258,7 @@ const plugin: grapesjs.Plugin<PluginOptions> = (editor, opts = {}) => {
display: inline-block;
}
`,
...props,
},
},
});
Expand Down

0 comments on commit 6a3d7d0

Please sign in to comment.