Skip to content

Add for default slot in vue SFC. #28

@rumansaleem

Description

@rumansaleem

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions