-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels