Export VPImage
as global component
#2813
Labels
contribution welcome
The team would welcome a contribution from the community for this issue
enhancement
New feature or request
theme
Related to the theme
Is your feature request related to a problem? Please describe.
Exporting
VPImage
as a global component, just likeVPBadge
, would be really helpful. This approach would allow a different image to be chosen depending on whether dark or light mode is used.For example:
Describe the solution you'd like
Export
VPImage
as globalImage
component, see e.g. commit kleisauke@f1b6a57.Describe alternatives you've considered
I considered to use this:
However, this approach wouldn't work if a user manually switches to dark mode.
Additional context
I could open a PR for commit kleisauke@f1b6a57, if appropriate.
Validations
The text was updated successfully, but these errors were encountered: