measuredco / puck

The visual editor for React
https://puckeditor.com
MIT License
5.2k stars 297 forks source link

Feature request: Allow mapRow to return more than just string and number types #506

Open goynang opened 4 months ago

goynang commented 4 months ago

How about letting the mapRow function on external fields return more types than just string and number?

For example, if it also allowed React Node (orReact Element?) you could do things like show thumbnail images for the items listed. This would make the external selection feature far more powerful.

Alternatively, maybe allowing an override for the list renderer would allow even more flexibility?

vladninja commented 3 months ago

I have the same case. Need to show a list of the images (thumbnails) in the popup, because the filename is not what the user want to see.