Adding default slot will enable consumers to make their SVG icons more accessible by adding custom title to the icon depending on the context where they are used.
Example:
<template>
...
<a href="mailto:[email protected]">
<EnvelopeIcon>
<title>Email: [email protected]</title>
</EnvelopeIcon>
</a>
...
</template>
<script>
import EnvelopeIcon from './../icons/envelope.svg';
export default {
components: { EnvelopeIcon },
...
}
</script>
This way consumer can use component icon at mutliple places with different titles.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too