vue-inline-svg icon indicating copy to clipboard operation
vue-inline-svg copied to clipboard

Set (overwrite) title with slot

Open econic opened this issue 6 years ago • 3 comments

As SVGs don't support the title attribute, a nice api would be a component's title attribute that renders as a title tag inside the loaded svg.

This theoretically also applies to style but is not subject of this issue. Any plans on supporting this?

econic avatar Aug 12 '19 06:08 econic

As a workaround, you can use transformSource with some helper function which will add title tag

shrpne avatar Nov 26 '19 13:11 shrpne

Released under v2.0.0

shrpne avatar Jul 28 '20 11:07 shrpne

Consider replacing title prop with slot accepting <title>, <desc>, <style>, etc. https://github.com/homeday-de/homeday-blocks/pull/481

shrpne avatar Jul 28 '20 12:07 shrpne