puck icon indicating copy to clipboard operation
puck copied to clipboard

Optionally Allow Setting Component Icons via Props

Open OsamuBlack opened this issue 4 months ago • 2 comments

Description

Currently, the component config doesn’t support setting icons. Most of the other DnD builders allow this feature. It is a simple yet nice feature, in my opinion.

Proposals

heading: {
  label?: string,
  icon?: React.ReactNode,
  ...rest
}
Image

OsamuBlack avatar Aug 04 '25 17:08 OsamuBlack

This could be a nice feature to add! You could technically achieve it with componentItem overrides (soon to be renamed to drawerItem overrides), but it would be nice to offer a less convoluted option, like a config parameter.

These could also be used as the icons within the outline.

FedericoBonel avatar Aug 05 '25 04:08 FedericoBonel

These could also be used as the icons within the outline.

Yes, my thoughts exactly.

OsamuBlack avatar Aug 05 '25 08:08 OsamuBlack