vitepress
vitepress copied to clipboard
[Feature request] Ability to use images in customer containers' custom title
Is your feature request related to a problem? Please describe.
Sometimes emojis don't cut it, so it would be awesome to have the ability to use images in customer containers' custom title.
Describe the solution you'd like
::: tip  TIP
This is a tip.
:::
Describe alternatives you've considered
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Read the Contributing Guidelines.
- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
This is something I'd also like to see added.
In the meantime ,you can manually add an icon via CSS.
.tip > .custom-block-title::before {
content: '';
display: inline-block;
width: 1.25rem;
height: 1.25rem;
background-color: var(--vp-c-text-1);
-webkit-mask-image: url('/images/info.svg');
mask-image: url('/images/info.svg');
-webkit-mask-size: contain;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
margin-right: 0.5rem;
vertical-align: middle;
}