You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked "open" AND "closed" issues and this is not a duplicate
Is your feature request related to a problem/unavailable functionality? Please describe.
It would be nice to add a possibility to include some metadata, an { key: value } object.
In particular for now I want size for all types (image, video), not only file.
I uploading files to S3 and I would like to save the Key.
Right now I can get it from src but it would be more convenient.
For video I would like to add a duration.
Is this a unique feature?
Is your feature request related to a problem/unavailable functionality? Please describe.
It would be nice to add a possibility to include some metadata, an { key: value } object.
In particular for now I want size for all types (image, video), not only file.
I uploading files to S3 and I would like to save the Key.
Right now I can get it from src but it would be more convenient.
For video I would like to add a duration.
Proposed Solution
export type ImageElementProps = {
src?: string | null;
alt?: string | null;
srcSet?: string | null;
bgColor?: string | null;
fit?: 'contain' | 'cover' | 'fill' | null;
sizes?: ImageSizes;
} & {
metadata?: Record<string, any>; // Add metadata as an optional property
};
Screenshots
No response
Do you want to work on this issue?
No
If "yes" to the above, please explain how you would technically implement this (issue will not be assigned if this is skipped)
No response
The text was updated successfully, but these errors were encountered: