diff --git a/packages/designer/src/simulator/selection.tsx b/packages/designer/src/simulator/selection.tsx index 33b73d61..a9146c19 100644 --- a/packages/designer/src/simulator/selection.tsx +++ b/packages/designer/src/simulator/selection.tsx @@ -489,10 +489,19 @@ const insertedItemStyle = css` function InsertedItem({ label, - icon = 'icon-placeholder', + icon, description, ...rest }: HTMLCoralProps<'div'> & Omit) { + let iconNode; + if (!icon) { + iconNode = ; + } else if (icon.startsWith('icon-')) { + iconNode = ; + } else { + iconNode = {label}; + } + return ( - {icon.startsWith('icon-') ? ( - - ) : ( - {label} - )} + {iconNode} {label}