Closed dangrima90 closed 4 years ago
Hi! You should set SVG attributes like you set fill
in your example.
Eg. <inline-svg opacity="0.25" :stroke-opacity="myStrokeOpacity"/>
attributes
is not a component's prop that's why you get such strange output.
I will update readme to make it clearer.
Ah understood! Thanks for the clarification! Tested out and it worked :)
Hi I'm testing out this component, basically I'm trying to use the attributes property.
When the component is rendered the attributes don't seem to be attached to the svg. In fact when inspecting the element I see the following:
I expected to see
opacity="0.25"
as an attribute on the svg element. Is this an issue, or am I passing the wrong value to the attributes property?