Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

render component icon

Oleg Isonend49b205b15d5
diff --git a/app/canvas/shared/use-outline.tsx b/app/canvas/shared/use-outline.tsx
index e05cfea12a..8eb2526bad 100644
--- a/app/canvas/shared/use-outline.tsx
+++ b/app/canvas/shared/use-outline.tsx
@@ -87,6 +87,7 @@ const Label = styled(
color: "$hiContrast",
alignItems: "center",
justifyContent: "center",
+ gap: "$1",
fontSize: "$2",
fontFamily: "$sans",
lineHeight: 1,
@@ -116,10 +117,14 @@ export const useOutline = (currentInstance: Instance) => {
}
const primitive = primitives[component as Instance["component"]];
+ const { Icon } = primitive;
return createPortal(
<Outline state={type} style={style} className={darkTheme}>
- <Label state={type}>{primitive.label}</Label>
+ <Label state={type}>
+ <Icon width="1em" height="1em" />
+ {primitive.label}
+ </Label>
</Outline>,
document.body
);