Skip to content

Support tooltip display by passing a title child element  #104

@acooo1

Description

@acooo1

As explained in this comment, title is not a valid svg attribute and will then not display a tooltip on icon hover. Setting title prop should instead add a <title> child element as follow:

<Icon title="my title" />

resulting in:

<svg>
    <title>{title}</title>
</svg>

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