puck
puck copied to clipboard
Optionally Allow Setting Component Icons via Props
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
}
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.
These could also be used as the icons within the outline.
Yes, my thoughts exactly.