Skip to content

Commit 74cd9ba

Browse files
author
Illia Obukhau
committed
feat(html-element-web): add custom caption for page explorer
1 parent 6ede728 commit 74cd9ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/pluggableWidgets/html-element-web/src/HTMLElement.editorConfig.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,8 @@ export function getPreview(
204204
isVoidElement(tagName) ? voidElementPreview(tagName) : flowElementPreview()
205205
);
206206
}
207+
208+
export function getCustomCaption(values: HTMLElementPreviewProps, _platform = "desktop"): string {
209+
const tagName = prepareTag(values.tagName, values.tagNameCustom);
210+
return `<${tagName} />`;
211+
}

0 commit comments

Comments
 (0)