Add optional attributes parameter to setImage #615
weiningtry7
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi! Thanks for the awesome library.
I noticed that
setMentionsupports an optionalattributes?: Record<string, string>parameter, which is super useful. However,setImagecurrently doesn't support this.Use Case
I need to distinguish between different types of images in my application (e.g., distinguishing a standard user-uploaded image from a custom system sticker/emoji, or adding custom layout metadata like
align: center).Having an
attributesparameter insetImagewould allow us to pass custom metadata seamlessly.Proposed API
Beta Was this translation helpful? Give feedback.
All reactions