#201·pretext

Specify customWidth instead of extraWidth for elements like custom emoji

Author: Stubenhocker1399Created Jun 23, 2026Updated Sep 14, 2026

We have a use case where we are replacing emojis with custom pixel based emoji img elements, which have a set width, and it would be nice to have the RichInlineItems have an option to flow these naturally as well. My current workaround is to use a placeholder symbol like □ and subtract its width manually through extraWidth, but that feels quite hacky.